From f2758d9af091b92be848c256408cddea01393b54 Mon Sep 17 00:00:00 2001 From: Raphael Kabo Date: Tue, 10 Oct 2023 17:34:50 +0100 Subject: [PATCH] Increase URL timeout to reduce Cypress flakiness --- cypress/e2e/event.cy.ts | 2 +- cypress/support/commands.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/event.cy.ts b/cypress/e2e/event.cy.ts index 270ca0a..46e35fb 100644 --- a/cypress/e2e/event.cy.ts +++ b/cypress/e2e/event.cy.ts @@ -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) => { diff --git a/cypress/support/commands.ts b/cypress/support/commands.ts index 6fc8768..7535103 100644 --- a/cypress/support/commands.ts +++ b/cypress/support/commands.ts @@ -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) => {