ZenTao integration: add zentao_issues_list_bundle tests
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
The following discussion from !69929 (merged) should be addressed:
-
@pslaughter started a discussion: (+3 comments) suggestion: Thanks for refining these specs @JeremyWuuuuu + also thanks @nmezzopera & @ntepluhina for catching the pre-existing issues
👍 @nmezzopera and I hopped on a call to discuss the broader context of these Zentao MR's and discovered that these new spec additions actually aren't even needed. For instance, this spec specifically targets
external_issues_list_empty_state.vuewhich already has its own unit tests inexternal_issues_list_empty_state_spec.js. Also, thezentao_issues_list_root_spec.jstargetsexternal_issues_list_root.vuewhich has it's own unit tests.Okay Paul, what do you suggest?
The new modules being added here are the
resolvers/zentao_issues.jsand thezentao_issues_list_bundle.js. The page bundles are usually covered by feature specs (which we can handle in a follow-up). Let's repurpose thezentao_issues_list_root_specto just target the new resolver specifically.Here's a patch for what I'm suggesting:
0001-Remove-redundant-tests-and-add-unit-test-for-zentao-.patch
What all does this patch do?
- Removes the specs being introduced in this MR.
- Adds a new
zentao_issues_specas a unit test for thezentao_issuesresolver. - Updates the
mock_datasince it included some properties that are Jira specific. @JeremyWuuuuu could you double check that themock_dataincludes the exact kind of responses we would expect from Zentao? For instance there's someweb_urlthat includeatlassian.com? Could we copy over a real Zentao API response here?
It would be nice to have some sort of test for the
zentao_issues_list_bundle, but it might be best to cover this with a FE integration test. Could we create a follow-up for this? WDYT @nmezzopera?