Skip to content

Flaky playwright test: crypto/user-verification.spec.ts: can receive a verification request when there is no existing DM #27819

@RiotRobot

Description

@RiotRobot
 4) [Chrome] › playwright/e2e/crypto/user-verification.spec.ts:34:9 › User verification › can receive a verification request when there is no existing DM 
    Error: Timed out 5000ms waiting for expect(locator).toBeVisible()

    Locator: locator('.mx_Toast_toast').filter({ hasText: 'Verification requested' }).first()
    Expected: visible
    Received: <element(s) not found>
    Call log:
      - Expect "toBeVisible" with timeout 5000ms
      - waiting for locator('.mx_Toast_toast').filter({ hasText: 'Verification requested' }).first()


       at ../pages/toasts.ts:22

      20 |     public async getToast(expectedTitle: string): Promise<Locator> {
      21 |         const toast = this.page.locator(".mx_Toast_toast", { hasText: expectedTitle }).first();
    > 22 |         await expect(toast).toBeVisible();
         |                             ^
      23 |         return toast;
      24 |     }
      25 |
        at Toasts.getToast (/home/runner/work/element-web/element-web/playwright/pages/toasts.ts:22:29)
        at /home/runner/work/element-web/element-web/playwright/e2e/crypto/user-verification.spec.ts:63:36
Previously
 1) crypto/user-verification.spec.ts:34:9 › User verification › can receive a verification request when there is no existing DM 
    Error: jsHandle.evaluateHandle: Test timeout of 30000ms exceeded.

       at crypto/utils.ts:374

      372 |     botVerificationRequest: JSHandle<VerificationRequest>,
      373 | ): Promise<JSHandle<Verifier>> {
    > 374 |     return botVerificationRequest.evaluateHandle(async (verificationRequest) => {
          |                                   ^
      375 |         while (!verificationRequest.verifier) {
      376 |             await new Promise((r) => verificationRequest.once("change" as any, r));
      377 |         }

        at awaitVerifier (/home/runner/work/element-web/element-web/playwright/e2e/crypto/utils.ts:374:35)
        at /home/runner/work/element-web/element-web/playwright/e2e/crypto/user-verification.spec.ts:67:48

https://github.com/matrix-org/matrix-react-sdk/actions/runs/10074671117

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions