From 6acaca072d7d2b479edeb594ce59a98055720580 Mon Sep 17 00:00:00 2001 From: Peter Kompasz Date: Fri, 9 Aug 2024 12:57:56 +0200 Subject: [PATCH] fix: accept any amount --- cypress/e2e/claim-portal-success.cy.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cypress/e2e/claim-portal-success.cy.ts b/cypress/e2e/claim-portal-success.cy.ts index 5f7850bf..362ce6f6 100644 --- a/cypress/e2e/claim-portal-success.cy.ts +++ b/cypress/e2e/claim-portal-success.cy.ts @@ -19,7 +19,10 @@ describe("Claims Portal Success", () => { it("should successfully claim a permit", () => { cy.get(".additional-details", { timeout: 15000 }).first().should("be.visible").invoke("click"); - cy.get('table[data-make-claim="ok"]').first().should("exist").and("include.text", " WXDAI"); + cy.get('table[data-make-claim="ok"]') + .first() + .should("exist") + .and("match", /^[0-9]+(\.[0-9]+)? WXDAI$/); cy.get("button[class='make-claim']").first().invoke("click");