Skip to content

Fix flaky playwright tests (#28984) #4087

Fix flaky playwright tests (#28984)

Fix flaky playwright tests (#28984) #4087

Triggered via push January 13, 2025 17:57
Status Success
Total duration 14m 0s
Artifacts 8
Build Element-Web
1m 47s
Build Element-Web
Matrix: playwright
end-to-end-tests
53s
end-to-end-tests
Fit to window
Zoom out
Zoom in

Annotations

9 errors, 28 warnings, and 6 notices
[Chrome] › spaces/threads-activity-centre/threadsActivityCentre.spec.ts:152:9 › Threads Activity Centre › should mark all threads as read @no-firefox @screenshot: playwright/e2e/spaces/threads-activity-centre/index.ts#L294
1) [Chrome] › spaces/threads-activity-centre/threadsActivityCentre.spec.ts:152:9 › Threads Activity Centre › should mark all threads as read @no-firefox @screenshot Error: Timed out 5000ms waiting for expect(locator).toBeVisible() Locator: getByRole('navigation', { name: 'Spaces' }).getByLabel('Threads').locator('[data-indicator=\'success\']') Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 5000ms - waiting for getByRole('navigation', { name: 'Spaces' }).getByLabel('Threads').locator('[data-indicator=\'success\']') at spaces/threads-activity-centre/index.ts:294 292 | */ 293 | assertNotificationTac() { > 294 | return expect(this.getTacButton().locator("[data-indicator='success']")).toBeVisible(); | ^ 295 | } 296 | 297 | /** at Helpers.assertNotificationTac (/home/runner/work/element-web/element-web/playwright/e2e/spaces/threads-activity-centre/index.ts:294:82) at /home/runner/work/element-web/element-web/playwright/e2e/spaces/threads-activity-centre/threadsActivityCentre.spec.ts:155:20
[Chrome] › spotlight/spotlight.spec.ts:132:9 › Spotlight › should find known public rooms: playwright/e2e/spotlight/spotlight.spec.ts#L138
2) [Chrome] › spotlight/spotlight.spec.ts:132:9 › Spotlight › should find known public rooms ───── Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected) Locator: locator('[role=dialog][aria-label="Search Dialog"]').locator('.mx_SpotlightDialog_section.mx_SpotlightDialog_results .mx_SpotlightDialog_option') Expected: 1 Received: 3 Call log: - expect.toHaveCount with timeout 5000ms - waiting for locator('[role=dialog][aria-label="Search Dialog"]').locator('.mx_SpotlightDialog_section.mx_SpotlightDialog_results .mx_SpotlightDialog_option') 2 × locator resolved to 0 elements - unexpected value "0" 7 × locator resolved to 3 elements - unexpected value "3" 136 | await spotlight.search(room1Name); 137 | const resultLocator = spotlight.results; > 138 | await expect(resultLocator).toHaveCount(1); | ^ 139 | await expect(resultLocator.first()).toContainText(room1Name); 140 | await expect(resultLocator.first()).toContainText("View"); 141 | await resultLocator.first().click(); at /home/runner/work/element-web/element-web/playwright/e2e/spotlight/spotlight.spec.ts:138:37
[Chrome] › spotlight/spotlight.spec.ts:146:9 › Spotlight › should find unknown public rooms: playwright/e2e/spotlight/spotlight.spec.ts#L152
3) [Chrome] › spotlight/spotlight.spec.ts:146:9 › Spotlight › should find unknown public rooms ─── Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected) Locator: locator('[role=dialog][aria-label="Search Dialog"]').locator('.mx_SpotlightDialog_section.mx_SpotlightDialog_results .mx_SpotlightDialog_option') Expected: 1 Received: 2 Call log: - expect.toHaveCount with timeout 5000ms - waiting for locator('[role=dialog][aria-label="Search Dialog"]').locator('.mx_SpotlightDialog_section.mx_SpotlightDialog_results .mx_SpotlightDialog_option') 2 × locator resolved to 0 elements - unexpected value "0" 7 × locator resolved to 2 elements - unexpected value "2" 150 | await spotlight.search(room2Name); 151 | const resultLocator = spotlight.results; > 152 | await expect(resultLocator).toHaveCount(1); | ^ 153 | await expect(resultLocator.first()).toContainText(room2Name); 154 | await expect(resultLocator.first()).toContainText("Join"); 155 | await resultLocator.first().click(); at /home/runner/work/element-web/element-web/playwright/e2e/spotlight/spotlight.spec.ts:152:37
[Chrome] › spotlight/spotlight.spec.ts:161:9 › Spotlight › should find unknown public world readable rooms: playwright/e2e/spotlight/spotlight.spec.ts#L167
4) [Chrome] › spotlight/spotlight.spec.ts:161:9 › Spotlight › should find unknown public world readable rooms Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected) Locator: locator('[role=dialog][aria-label="Search Dialog"]').locator('.mx_SpotlightDialog_section.mx_SpotlightDialog_results .mx_SpotlightDialog_option') Expected: 1 Received: 2 Call log: - expect.toHaveCount with timeout 5000ms - waiting for locator('[role=dialog][aria-label="Search Dialog"]').locator('.mx_SpotlightDialog_section.mx_SpotlightDialog_results .mx_SpotlightDialog_option') 2 × locator resolved to 0 elements - unexpected value "0" 7 × locator resolved to 2 elements - unexpected value "2" 165 | await spotlight.search(room3Name); 166 | const resultLocator = spotlight.results; > 167 | await expect(resultLocator).toHaveCount(1); | ^ 168 | await expect(resultLocator.first()).toContainText(room3Name); 169 | await expect(resultLocator.first()).toContainText("View"); 170 | await resultLocator.first().click(); at /home/runner/work/element-web/element-web/playwright/e2e/spotlight/spotlight.spec.ts:167:37
[Chrome] › spotlight/spotlight.spec.ts:220:9 › Spotlight › should find unknown people: playwright/e2e/spotlight/spotlight.spec.ts#L226
5) [Chrome] › spotlight/spotlight.spec.ts:220:9 › Spotlight › should find unknown people ───────── Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected) Locator: locator('[role=dialog][aria-label="Search Dialog"]').locator('.mx_SpotlightDialog_section.mx_SpotlightDialog_results .mx_SpotlightDialog_option') Expected: 1 Received: 3 Call log: - expect.toHaveCount with timeout 5000ms - waiting for locator('[role=dialog][aria-label="Search Dialog"]').locator('.mx_SpotlightDialog_section.mx_SpotlightDialog_results .mx_SpotlightDialog_option') 2 × locator resolved to 0 elements - unexpected value "0" 7 × locator resolved to 3 elements - unexpected value "3" 224 | await spotlight.search(bot2Name); 225 | const resultLocator = spotlight.results; > 226 | await expect(resultLocator).toHaveCount(1); | ^ 227 | await expect(resultLocator.first()).toContainText(bot2Name); 228 | await resultLocator.first().click(); 229 | await expect(roomHeaderName(page)).toHaveText(bot2Name); at /home/runner/work/element-web/element-web/playwright/e2e/spotlight/spotlight.spec.ts:226:37
[Chrome] › spotlight/spotlight.spec.ts:321:9 › Spotlight › should allow opening group chat dialog: playwright/e2e/spotlight/spotlight.spec.ts#L329
6) [Chrome] › spotlight/spotlight.spec.ts:321:9 › Spotlight › should allow opening group chat dialog Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected) Locator: locator('[role=dialog][aria-label="Search Dialog"]').locator('.mx_SpotlightDialog_section.mx_SpotlightDialog_results .mx_SpotlightDialog_option') Expected: 1 Received: 4 Call log: - expect.toHaveCount with timeout 5000ms - waiting for locator('[role=dialog][aria-label="Search Dialog"]').locator('.mx_SpotlightDialog_section.mx_SpotlightDialog_results .mx_SpotlightDialog_option') 9 × locator resolved to 4 elements - unexpected value "4" 327 | 328 | const resultLocator = spotlight.results; > 329 | await expect(resultLocator).toHaveCount(1); | ^ 330 | await expect(resultLocator.first()).toContainText(bot2Name); 331 | 332 | await expect(spotlight.dialog.locator(".mx_SpotlightDialog_startGroupChat")).toContainText( at /home/runner/work/element-web/element-web/playwright/e2e/spotlight/spotlight.spec.ts:329:37
[Chrome] › spotlight/spotlight.spec.ts:339:9 › Spotlight › should close spotlight after starting a DM: playwright/e2e/spotlight/spotlight.spec.ts#L27
7) [Chrome] › spotlight/spotlight.spec.ts:339:9 › Spotlight › should close spotlight after starting a DM Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected) Locator: locator('[role=dialog][aria-label="Search Dialog"]').locator('.mx_SpotlightDialog_section.mx_SpotlightDialog_results .mx_SpotlightDialog_option') Expected: 1 Received: 2 Call log: - expect.toHaveCount with timeout 5000ms - waiting for locator('[role=dialog][aria-label="Search Dialog"]').locator('.mx_SpotlightDialog_section.mx_SpotlightDialog_results .mx_SpotlightDialog_option') 9 × locator resolved to 2 elements - unexpected value "2" 25 | await expect(spotlight.dialog.locator(".mx_Spinner")).not.toBeAttached(); 26 | const result = spotlight.results; > 27 | await expect(result).toHaveCount(1); | ^ 28 | await expect(result.first()).toContainText(name); 29 | await result.first().click(); 30 | at startDM (/home/runner/work/element-web/element-web/playwright/e2e/spotlight/spotlight.spec.ts:27:26) at /home/runner/work/element-web/element-web/playwright/e2e/spotlight/spotlight.spec.ts:340:9
[Chrome] › spotlight/spotlight.spec.ts:344:9 › Spotlight › should show the same user only once: playwright/e2e/spotlight/spotlight.spec.ts#L27
8) [Chrome] › spotlight/spotlight.spec.ts:344:9 › Spotlight › should show the same user only once Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected) Locator: locator('[role=dialog][aria-label="Search Dialog"]').locator('.mx_SpotlightDialog_section.mx_SpotlightDialog_results .mx_SpotlightDialog_option') Expected: 1 Received: 2 Call log: - expect.toHaveCount with timeout 5000ms - waiting for locator('[role=dialog][aria-label="Search Dialog"]').locator('.mx_SpotlightDialog_section.mx_SpotlightDialog_results .mx_SpotlightDialog_option') 9 × locator resolved to 2 elements - unexpected value "2" 25 | await expect(spotlight.dialog.locator(".mx_Spinner")).not.toBeAttached(); 26 | const result = spotlight.results; > 27 | await expect(result).toHaveCount(1); | ^ 28 | await expect(result.first()).toContainText(name); 29 | await result.first().click(); 30 | at startDM (/home/runner/work/element-web/element-web/playwright/e2e/spotlight/spotlight.spec.ts:27:26) at /home/runner/work/element-web/element-web/playwright/e2e/spotlight/spotlight.spec.ts:345:9
[Chrome] › spotlight/spotlight.spec.ts:357:9 › Spotlight › should be able to navigate results via keyboard: playwright/e2e/spotlight/spotlight.spec.ts#L364
9) [Chrome] › spotlight/spotlight.spec.ts:357:9 › Spotlight › should be able to navigate results via keyboard Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected) Locator: locator('[role=dialog][aria-label="Search Dialog"]').locator('.mx_SpotlightDialog_section.mx_SpotlightDialog_results .mx_SpotlightDialog_option') Expected: 2 Received: 4 Call log: - expect.toHaveCount with timeout 5000ms - waiting for locator('[role=dialog][aria-label="Search Dialog"]').locator('.mx_SpotlightDialog_section.mx_SpotlightDialog_results .mx_SpotlightDialog_option') 2 × locator resolved to 1 element - unexpected value "1" 7 × locator resolved to 4 elements - unexpected value "4" 362 | 363 | let resultLocator = spotlight.results; > 364 | await expect(resultLocator).toHaveCount(2); | ^ 365 | await expect(resultLocator.first()).toHaveAttribute("aria-selected", "true"); 366 | await expect(resultLocator.last()).toHaveAttribute("aria-selected", "false"); 367 | at /home/runner/work/element-web/element-web/playwright/e2e/spotlight/spotlight.spec.ts:364:37
Slow Test: [Chrome] › read-receipts/high-level.spec.ts#L1
[Chrome] › read-receipts/high-level.spec.ts took 3.0m
Slow Test: [Chrome] › read-receipts/new-messages-in-threads.spec.ts#L1
[Chrome] › read-receipts/new-messages-in-threads.spec.ts took 58.3s
Slow Test: [Chrome] › read-receipts/new-messages-main-timeline.spec.ts#L1
[Chrome] › read-receipts/new-messages-main-timeline.spec.ts took 39.4s
Slow Test: [Chrome] › read-receipts/new-messages-thread-roots.spec.ts#L1
[Chrome] › read-receipts/new-messages-thread-roots.spec.ts took 27.7s
Slow Test: [Chrome] › messages/messages.spec.ts#L1
[Chrome] › messages/messages.spec.ts took 59.4s
Slow Test: [Chrome] › pinned-messages/pinned-messages.spec.ts#L1
[Chrome] › pinned-messages/pinned-messages.spec.ts took 57.4s
Slow Test: [Chrome] › read-receipts/editing-messages-in-threads.spec.ts#L1
[Chrome] › read-receipts/editing-messages-in-threads.spec.ts took 38.8s
Slow Test: [Chrome] › read-receipts/editing-messages-main-timeline.spec.ts#L1
[Chrome] › read-receipts/editing-messages-main-timeline.spec.ts took 38.2s
Slow Test: [Chrome] › invite/invite-dialog.spec.ts#L1
[Chrome] › invite/invite-dialog.spec.ts took 30.6s
Slow Test: [Chrome] › crypto/event-shields.spec.ts#L1
[Chrome] › crypto/event-shields.spec.ts took 51.6s
Slow Test: [Chrome] › audio-player/audio-player.spec.ts#L1
[Chrome] › audio-player/audio-player.spec.ts took 37.3s
Slow Test: [Chrome] › composer/RTE.spec.ts#L1
[Chrome] › composer/RTE.spec.ts took 35.8s
Slow Test: [Chrome] › crypto/crypto.spec.ts#L1
[Chrome] › crypto/crypto.spec.ts took 34.3s
Slow Test: [Chrome] › crypto/decryption-failure-messages.spec.ts#L1
[Chrome] › crypto/decryption-failure-messages.spec.ts took 28.5s
Slow Test: [Chrome] › timeline/timeline.spec.ts#L1
[Chrome] › timeline/timeline.spec.ts took 1.3m
Slow Test: [Chrome] › login/login-consent.spec.ts#L1
[Chrome] › login/login-consent.spec.ts took 1.0m
Slow Test: [Chrome] › threads/threads.spec.ts#L1
[Chrome] › threads/threads.spec.ts took 30.9s
Slow Test: [Chrome] › crypto/backups-mas.spec.ts#L1
[Chrome] › crypto/backups-mas.spec.ts took 27.5s
Slow Test: [Chrome] › user-onboarding/user-onboarding-new.spec.ts#L1
[Chrome] › user-onboarding/user-onboarding-new.spec.ts took 23.7s
Slow Test: [Chrome] › read-receipts/redactions-in-threads.spec.ts#L1
[Chrome] › read-receipts/redactions-in-threads.spec.ts took 1.5m
Slow Test: [Chrome] › read-receipts/redactions-main-timeline.spec.ts#L1
[Chrome] › read-receipts/redactions-main-timeline.spec.ts took 1.1m
Slow Test: [Chrome] › read-receipts/reactions-in-threads.spec.ts#L1
[Chrome] › read-receipts/reactions-in-threads.spec.ts took 59.6s
Slow Test: [Chrome] › read-receipts/read-receipts.spec.ts#L1
[Chrome] › read-receipts/read-receipts.spec.ts took 46.4s
Slow Test: [Chrome] › read-receipts/redactions-thread-roots.spec.ts#L1
[Chrome] › read-receipts/redactions-thread-roots.spec.ts took 30.8s
Slow Test: [Chrome] › sliding-sync/sliding-sync.spec.ts#L1
[Chrome] › sliding-sync/sliding-sync.spec.ts took 56.4s
Slow Test: [Chrome] › room/room-header.spec.ts#L1
[Chrome] › room/room-header.spec.ts took 36.6s
Slow Test: [Chrome] › spaces/spaces.spec.ts#L1
[Chrome] › spaces/spaces.spec.ts took 31.2s
Slow Test: [Chrome] › settings/account-user-settings-tab.spec.ts#L1
[Chrome] › settings/account-user-settings-tab.spec.ts took 17.2s
🎭 Playwright Run Summary
43 skipped 33 passed (5.2m)
🎭 Playwright Run Summary
2 skipped 79 passed (6.2m)
🎭 Playwright Run Summary
82 passed (6.6m)
🎭 Playwright Run Summary
71 passed (6.8m)
🎭 Playwright Run Summary
2 skipped 75 passed (6.8m)
🎭 Playwright Run Summary
9 flaky [Chrome] › spaces/threads-activity-centre/threadsActivityCentre.spec.ts:152:9 › Threads Activity Centre › should mark all threads as read @no-firefox @screenshot [Chrome] › spotlight/spotlight.spec.ts:132:9 › Spotlight › should find known public rooms ────── [Chrome] › spotlight/spotlight.spec.ts:146:9 › Spotlight › should find unknown public rooms ──── [Chrome] › spotlight/spotlight.spec.ts:161:9 › Spotlight › should find unknown public world readable rooms [Chrome] › spotlight/spotlight.spec.ts:220:9 › Spotlight › should find unknown people ────────── [Chrome] › spotlight/spotlight.spec.ts:321:9 › Spotlight › should allow opening group chat dialog [Chrome] › spotlight/spotlight.spec.ts:339:9 › Spotlight › should close spotlight after starting a DM [Chrome] › spotlight/spotlight.spec.ts:344:9 › Spotlight › should show the same user only once ─ [Chrome] › spotlight/spotlight.spec.ts:357:9 › Spotlight › should be able to navigate results via keyboard 2 skipped 72 passed (9.0m)

Artifacts

Produced during runtime
Name Size
all-blob-reports-Chrome-1 Expired
651 KB
all-blob-reports-Chrome-2 Expired
296 KB
all-blob-reports-Chrome-3 Expired
209 KB
all-blob-reports-Chrome-4 Expired
326 KB
all-blob-reports-Chrome-5 Expired
40 MB
all-blob-reports-Chrome-6 Expired
941 KB
html-report Expired
36.4 MB
webapp Expired
28.7 MB