Skip to content

Commit

Permalink
fix: accept any amount
Browse files Browse the repository at this point in the history
  • Loading branch information
pbkompasz committed Aug 9, 2024
1 parent 649b756 commit 6acaca0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cypress/e2e/claim-portal-success.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit 6acaca0

Please sign in to comment.