chore: enhance the tests

This commit is contained in:
Nathnael
2026-07-21 13:10:44 +00:00
parent 20a6ef7906
commit eb36aab05f
6 changed files with 279 additions and 47 deletions

View File

@@ -190,7 +190,10 @@ describe("contract lifecycle: creation to finalization", { retries: 0 }, () => {
cy.get(`[id="${id}"]`).clear().type("EDR Marketer");
});
cy.drawSignature();
cy.contains("button", /^Confirm signature$|^Approve & sign$/).click();
// Scoped to the modal — the toolbar behind it has its own "Approve & sign".
cy.get(".mantine-Modal-content")
.contains("button", /^Confirm signature$|^Approve & sign$/)
.click();
cy.contains("counter-signed", { timeout: 30000 }).should("be.visible");