Skip to content

Commit

Permalink
Cypress workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
fadwamahmoud committed Oct 9, 2023
1 parent a0557d6 commit 1fb6d69
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/e2e/integration/athlete_self_update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ describe("athlete profile", () => {
cy.visit([Routes.CustomerArea, saul.secretKey].join("/"));
cy.clickButton(i18n.t(CustomerNavigationLabel.Profile) as string);
// Toggle edit mode
cy.clickButton(i18n.t(ActionButton.Edit) as string);
// Wait for edit mode to be enabled before making furter assertions
// below is a workaround because cypress can't click the correct element
cy.clickButton(i18n.t(ActionButton.Edit) as string);
cy.clickButton(i18n.t(ActionButton.Edit) as string);
cy.get("input").first().should("be.enabled");
});

Expand Down

0 comments on commit 1fb6d69

Please sign in to comment.