stable

Clone or download

Read-only

fix: Program management e2e more robust retry

Fixes request #39326 Program management e2e test fails to retry when checking mirrored iterations No functional change. make tests-e2e should succeed for program management. You can simulate backend slowness by adding sleep(5) at IterationsCreator:83 and ProgramIncrementsCreator:57. The test should retry several times to check whether the mirrored iterations have been created. Note: In the condition predicate, we start by checking that the spinner does not exist, so that cypress can wait for the async loading of the sprints. Otherwise, it would fail every time, because the milestones are not yet loaded. Then, we do not use cy.get() on purpose, because Cypress will throw an Error instead of returning false to tell our command to reload the page. Finally, the reload callback for iterations never got back to the Sprints planning page. Now, it "just" uses cy.reload(), so it will expect to already be on the Sprints planning of the Team project. Change-Id: I48990eb097cf9bf5b98f55aa8683add945aeede8

Modified Files

Name
M plugins/agiledashboard/scripts/planning-v2/src/app/planner-view/planner-view.tpl.html +1 −1 Go to diff View file
M plugins/program_management/tests/e2e/cypress/cypress/e2e/program_management.cy.ts +24 −23 Go to diff View file