This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
Fix flaky crypto playwright tests (#143) #817
Annotations
7 errors, 30 warnings, and 6 notices
crypto/crypto.spec.ts:97:17 › Cryptography › setting up secure key backup should work isDeviceVerified=false › by recovery code:
matrix-react-sdk/playwright/e2e/crypto/crypto.spec.ts#L120
1) crypto/crypto.spec.ts:97:17 › Cryptography › setting up secure key backup should work isDeviceVerified=false › by recovery code
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
Locator: locator('.mx_InteractiveAuthDialog .mx_Dialog_title').getByText('Setting up keys')
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for locator('.mx_InteractiveAuthDialog .mx_Dialog_title').getByText('Setting up keys')
118 | if (!isDeviceVerified) {
119 | const uiaDialogTitle = page.locator(".mx_InteractiveAuthDialog .mx_Dialog_title");
> 120 | await expect(uiaDialogTitle.getByText("Setting up keys")).toBeVisible();
| ^
121 | await expect(uiaDialogTitle.getByText("Setting up keys")).not.toBeVisible();
122 | }
123 |
at /home/runner/work/matrix-react-sdk/matrix-react-sdk/matrix-react-sdk/playwright/e2e/crypto/crypto.spec.ts:120:79
|
crypto/user-verification.spec.ts:78:9 › User verification › can abort emoji verification when emoji mismatch:
matrix-react-sdk/playwright/e2e/crypto/user-verification.spec.ts#L1
2) crypto/user-verification.spec.ts:78:9 › User verification › can abort emoji verification when emoji mismatch
Test timeout of 30000ms exceeded.
|
crypto/user-verification.spec.ts:78:9 › User verification › can abort emoji verification when emoji mismatch:
matrix-react-sdk/playwright/e2e/crypto/utils.ts#L373
2) crypto/user-verification.spec.ts:78:9 › User verification › can abort emoji verification when emoji mismatch
Error: jsHandle.evaluateHandle: Test timeout of 30000ms exceeded.
at crypto/utils.ts:373
371 | botVerificationRequest: JSHandle<VerificationRequest>,
372 | ): Promise<JSHandle<Verifier>> {
> 373 | return botVerificationRequest.evaluateHandle(async (verificationRequest) => {
| ^
374 | while (!verificationRequest.verifier) {
375 | await new Promise((r) => verificationRequest.once("change" as any, r));
376 | }
at awaitVerifier (/home/runner/work/matrix-react-sdk/matrix-react-sdk/matrix-react-sdk/playwright/e2e/crypto/utils.ts:373:35)
at /home/runner/work/matrix-react-sdk/matrix-react-sdk/matrix-react-sdk/playwright/e2e/crypto/user-verification.spec.ts:108:48
|
login/login.spec.ts:199:21 › Login › Password login › verification after login › with force_verification on › Shows unskippable verification prompt after login if signing keys are set up:
matrix-react-sdk/playwright/e2e/login/login.spec.ts#L220
1) login/login.spec.ts:199:21 › Login › Password login › verification after login › with force_verification on › Shows unskippable verification prompt after login if signing keys are set up
Error: expect(locator).not.toBeVisible()
Locator: getByRole('heading', { name: 'Verify this device', level: 1 }).locator('.mx_CompleteSecurity_skip')
Expected: not visible
Received: visible
Call log:
- expect.not.toBeVisible with timeout 5000ms
- waiting for getByRole('heading', { name: 'Verify this device', level: 1 }).locator('.mx_CompleteSecurity_skip')
218 | await expect(h1).toBeVisible();
219 |
> 220 | expect(h1.locator(".mx_CompleteSecurity_skip")).not.toBeVisible();
| ^
221 | });
222 | });
223 | });
at /home/runner/work/matrix-react-sdk/matrix-react-sdk/matrix-react-sdk/playwright/e2e/login/login.spec.ts:220:73
|
oidc/oidc-native.spec.ts:21:9 › OIDC Native › can register the oauth2 client and an account:
matrix-react-sdk/playwright/e2e/oidc/oidc-native.spec.ts#L1
2) oidc/oidc-native.spec.ts:21:9 › OIDC Native › can register the oauth2 client and an account ───
Test timeout of 90000ms exceeded.
|
oidc/oidc-native.spec.ts:21:9 › OIDC Native › can register the oauth2 client and an account:
matrix-react-sdk/playwright/e2e/oidc/oidc-native.spec.ts#L23
2) oidc/oidc-native.spec.ts:21:9 › OIDC Native › can register the oauth2 client and an account ───
Error: page.waitForRequest: Test timeout of 90000ms exceeded.
21 | test("can register the oauth2 client and an account", async ({ context, page, homeserver, mailhog, mas }) => {
22 | const tokenUri = `http://localhost:${mas.port}/oauth2/token`;
> 23 | const tokenApiPromise = page.waitForRequest(
| ^
24 | (request) => request.url() === tokenUri && request.postDataJSON()["grant_type"] === "authorization_code",
25 | );
26 |
at /home/runner/work/matrix-react-sdk/matrix-react-sdk/matrix-react-sdk/playwright/e2e/oidc/oidc-native.spec.ts:23:38
|
oidc/oidc-native.spec.ts:21:9 › OIDC Native › can register the oauth2 client and an account:
matrix-react-sdk/playwright/e2e/oidc/oidc-native.spec.ts#L28
2) oidc/oidc-native.spec.ts:21:9 › OIDC Native › can register the oauth2 client and an account ───
Error: locator.click: Test timeout of 90000ms exceeded.
Call log:
- waiting for getByRole('button', { name: 'Continue' })
26 |
27 | await page.goto("/#/login");
> 28 | await page.getByRole("button", { name: "Continue" }).click();
| ^
29 | await registerAccountMas(page, mailhog.api, "alice", "alice@email.com", "Pa$sW0rD!");
30 |
31 | // Eventually, we should end up at the home screen.
at /home/runner/work/matrix-react-sdk/matrix-react-sdk/matrix-react-sdk/playwright/e2e/oidc/oidc-native.spec.ts:28:62
|
Slow Test:
matrix-react-sdk/timeline/timeline.spec.ts#L1
matrix-react-sdk/timeline/timeline.spec.ts took 2.7m
|
Slow Test:
matrix-react-sdk/spotlight/spotlight.spec.ts#L1
matrix-react-sdk/spotlight/spotlight.spec.ts took 2.0m
|
Slow Test:
matrix-react-sdk/spaces/threads-activity-centre/threadsActivityCentre.spec.ts#L1
matrix-react-sdk/spaces/threads-activity-centre/threadsActivityCentre.spec.ts took 1.6m
|
Slow Test:
matrix-react-sdk/threads/threads.spec.ts#L1
matrix-react-sdk/threads/threads.spec.ts took 33.5s
|
Slow Test:
matrix-react-sdk/user-onboarding/user-onboarding-new.spec.ts#L1
matrix-react-sdk/user-onboarding/user-onboarding-new.spec.ts took 31.5s
|
Slow Test:
matrix-react-sdk/read-receipts/high-level.spec.ts#L1
matrix-react-sdk/read-receipts/high-level.spec.ts took 3.5m
|
Slow Test:
matrix-react-sdk/read-receipts/new-messages-in-threads.spec.ts#L1
matrix-react-sdk/read-receipts/new-messages-in-threads.spec.ts took 1.8m
|
Slow Test:
matrix-react-sdk/read-receipts/editing-messages-in-threads.spec.ts#L1
matrix-react-sdk/read-receipts/editing-messages-in-threads.spec.ts took 1.4m
|
Slow Test:
matrix-react-sdk/read-receipts/editing-messages-main-timeline.spec.ts#L1
matrix-react-sdk/read-receipts/editing-messages-main-timeline.spec.ts took 1.2m
|
Slow Test:
matrix-react-sdk/read-receipts/editing-messages-thread-roots.spec.ts#L1
matrix-react-sdk/read-receipts/editing-messages-thread-roots.spec.ts took 57.3s
|
Slow Test:
matrix-react-sdk/read-receipts/redactions-thread-roots.spec.ts#L1
matrix-react-sdk/read-receipts/redactions-thread-roots.spec.ts took 1.1m
|
Slow Test:
matrix-react-sdk/spaces/spaces.spec.ts#L1
matrix-react-sdk/spaces/spaces.spec.ts took 1.0m
|
Slow Test:
matrix-react-sdk/right-panel/right-panel.spec.ts#L1
matrix-react-sdk/right-panel/right-panel.spec.ts took 52.2s
|
Slow Test:
matrix-react-sdk/settings/account-user-settings-tab.spec.ts#L1
matrix-react-sdk/settings/account-user-settings-tab.spec.ts took 41.8s
|
Slow Test:
matrix-react-sdk/right-panel/file-panel.spec.ts#L1
matrix-react-sdk/right-panel/file-panel.spec.ts took 36.1s
|
Slow Test:
matrix-react-sdk/read-receipts/redactions-in-threads.spec.ts#L1
matrix-react-sdk/read-receipts/redactions-in-threads.spec.ts took 2.7m
|
Slow Test:
matrix-react-sdk/read-receipts/redactions-main-timeline.spec.ts#L1
matrix-react-sdk/read-receipts/redactions-main-timeline.spec.ts took 2.0m
|
Slow Test:
matrix-react-sdk/read-receipts/new-messages-main-timeline.spec.ts#L1
matrix-react-sdk/read-receipts/new-messages-main-timeline.spec.ts took 1.3m
|
Slow Test:
matrix-react-sdk/read-receipts/read-receipts.spec.ts#L1
matrix-react-sdk/read-receipts/read-receipts.spec.ts took 1.1m
|
Slow Test:
matrix-react-sdk/read-receipts/reactions-in-threads.spec.ts#L1
matrix-react-sdk/read-receipts/reactions-in-threads.spec.ts took 1.1m
|
Slow Test:
matrix-react-sdk/audio-player/audio-player.spec.ts#L1
matrix-react-sdk/audio-player/audio-player.spec.ts took 1.2m
|
Slow Test:
matrix-react-sdk/composer/RTE.spec.ts#L1
matrix-react-sdk/composer/RTE.spec.ts took 1.2m
|
Slow Test:
matrix-react-sdk/crypto/event-shields.spec.ts#L1
matrix-react-sdk/crypto/event-shields.spec.ts took 57.6s
|
Slow Test:
matrix-react-sdk/crypto/decryption-failure-messages.spec.ts#L1
matrix-react-sdk/crypto/decryption-failure-messages.spec.ts took 53.2s
|
Slow Test:
matrix-react-sdk/crypto/device-verification.spec.ts#L1
matrix-react-sdk/crypto/device-verification.spec.ts took 50.0s
|
Slow Test:
matrix-react-sdk/messages/messages.spec.ts#L1
matrix-react-sdk/messages/messages.spec.ts took 2.5m
|
Slow Test:
matrix-react-sdk/pinned-messages/pinned-messages.spec.ts#L1
matrix-react-sdk/pinned-messages/pinned-messages.spec.ts took 1.8m
|
Slow Test:
matrix-react-sdk/knock/knock-into-room.spec.ts#L1
matrix-react-sdk/knock/knock-into-room.spec.ts took 41.1s
|
Slow Test:
matrix-react-sdk/integration-manager/read_events.spec.ts#L1
matrix-react-sdk/integration-manager/read_events.spec.ts took 40.3s
|
Slow Test:
matrix-react-sdk/polls/polls.spec.ts#L1
matrix-react-sdk/polls/polls.spec.ts took 37.9s
|
🎭 Playwright Run Summary
4 skipped
67 passed (9.1m)
|
🎭 Playwright Run Summary
32 skipped
42 passed (9.0m)
|
🎭 Playwright Run Summary
10 skipped
70 passed (9.6m)
|
🎭 Playwright Run Summary
14 skipped
62 passed (10.3m)
|
🎭 Playwright Run Summary
2 flaky
crypto/crypto.spec.ts:97:17 › Cryptography › setting up secure key backup should work isDeviceVerified=false › by recovery code
crypto/user-verification.spec.ts:78:9 › User verification › can abort emoji verification when emoji mismatch
1 skipped
75 passed (12.3m)
|
🎭 Playwright Run Summary
2 flaky
login/login.spec.ts:199:21 › Login › Password login › verification after login › with force_verification on › Shows unskippable verification prompt after login if signing keys are set up
oidc/oidc-native.spec.ts:21:9 › OIDC Native › can register the oauth2 client and an account ────
1 skipped
76 passed (13.3m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
all-blob-reports-1
Expired
|
8.77 MB |
|
all-blob-reports-2
Expired
|
10.3 MB |
|
all-blob-reports-3
Expired
|
447 KB |
|
all-blob-reports-4
Expired
|
510 KB |
|
all-blob-reports-5
Expired
|
819 KB |
|
all-blob-reports-6
Expired
|
865 KB |
|
html-report
Expired
|
19.4 MB |
|
webapp
Expired
|
38.1 MB |
|