Skip to content

Commit

Permalink
Task/fix cypress failures (#2059)
Browse files Browse the repository at this point in the history
* chore: bump cypress to the last v13, 13.17.0

* fix(gca_pages): re-work test a bit to hopefully avoid failures

* chore: formatting
  • Loading branch information
andrewleith authored Jan 30, 2025
1 parent 0405222 commit ac3503a
Show file tree
Hide file tree
Showing 3 changed files with 374 additions and 326 deletions.
9 changes: 6 additions & 3 deletions tests_cypress/cypress/e2e/admin/a11y/gca_pages.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,14 @@ describe("Language toggle works on all pages", () => {
for (const page of fullPageList) {
it(`${page.en}`, () => {
cy.visit(page.en);
cy.get("#header-lang").click();
cy.url().should("contain", page.fr);

cy.get("#header-lang").click();
cy.get("#header-lang").should("be.visible");
cy.url().should("contain", page.en);

cy.get("#header-lang").click();

cy.get("#header-lang").should("be.visible");
cy.url().should("contain", page.fr);
});
}
});
Loading

0 comments on commit ac3503a

Please sign in to comment.