Skip to content

Commit

Permalink
Increase URL timeout to reduce Cypress flakiness
Browse files Browse the repository at this point in the history
  • Loading branch information
lowercasename committed Oct 10, 2023
1 parent 61a0c53 commit f2758d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/event.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe("Events", () => {
cy.get("#newEventFormSubmit").click();

// Wait for the new page to load
cy.url().should("not.include", "/new");
cy.url({ timeout: 10000 }).should("not.include", "/new");

// Get the new event ID from the URL
cy.url().then((url) => {
Expand Down
2 changes: 1 addition & 1 deletion cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Cypress.Commands.add("createGroup", (groupData) => {
cy.get("#newEventGroupForm").submit();

// Wait for the new page to load
cy.url().should("not.include", "/new");
cy.url({ timeout: 10000 }).should("not.include", "/new");

// Get the new group ID from the URL
cy.url().then((url) => {
Expand Down

0 comments on commit f2758d9

Please sign in to comment.