From 6780287ecf7dd5d4d4fbd5590175e3081a6e0cf3 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> Date: Mon, 19 Jun 2023 13:37:28 +0100 Subject: [PATCH] Cypress: Increase timeout for starting verification (#11109) --- cypress/e2e/crypto/crypto.spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cypress/e2e/crypto/crypto.spec.ts b/cypress/e2e/crypto/crypto.spec.ts index 920980e171..f3fd9bba53 100644 --- a/cypress/e2e/crypto/crypto.spec.ts +++ b/cypress/e2e/crypto/crypto.spec.ts @@ -139,7 +139,10 @@ const verify = function (this: CryptoTestContext) { cy.findByText("Bob").click(); cy.findByRole("button", { name: "Verify" }).click(); cy.findByRole("button", { name: "Start Verification" }).click(); - cy.findByRole("button", { name: "Verify by emoji" }).click(); + + // this requires creating a DM, so can take a while. Give it a longer timeout. + cy.findByRole("button", { name: "Verify by emoji", timeout: 30000 }).click(); + cy.wrap(bobsVerificationRequestPromise).then((request: VerificationRequest) => { doTwoWaySasVerification(request); });