From a8f3424a3ee16deeedbbcda1ce5dc3034890cea3 Mon Sep 17 00:00:00 2001 From: Keyrxng <106303466+Keyrxng@users.noreply.github.com> Date: Mon, 1 Jul 2024 12:50:22 +0100 Subject: [PATCH] chore: add timeout for all notifi --- cypress/e2e/claim-portal-success.cy.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cypress/e2e/claim-portal-success.cy.ts b/cypress/e2e/claim-portal-success.cy.ts index 765d373a..3238904d 100644 --- a/cypress/e2e/claim-portal-success.cy.ts +++ b/cypress/e2e/claim-portal-success.cy.ts @@ -34,8 +34,8 @@ describe("Claims Portal Success", () => { cy.get("#view-claim").should("be.visible").and("include.text", "View Claim"); // anvil confirms it instantly so there is two notifications - cy.get("body").should("contain.text", "Transaction sent"); - cy.get("body").should("contain.text", "Claim Complete"); + cy.get("body", { timeout: 15000 }).should("contain.text", "Transaction sent"); + cy.get("body", { timeout: 15000 }).should("contain.text", "Claim Complete"); }); }); @@ -78,7 +78,7 @@ describe("Claims Portal Success", () => { cy.get("#claim-loader").should("not.be.visible"); cy.get("#view-claim").should("not.be.visible"); - cy.get("body").should("contain.text", "Nonce invalidation transaction sent"); + cy.get("body", { timeout: 15000 }).should("contain.text", "Nonce invalidation transaction sent"); }); }); });