Fix flaky playwright tests #4000
Annotations
1 error, 4 warnings, and 1 notice
Run Playwright tests:
playwright/e2e/spotlight/spotlight.spec.ts#L369
1) [Chrome] › spotlight/spotlight.spec.ts:362:5 › 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: 31
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 31 elements
- unexpected value "31"
367 |
368 | let resultLocator = spotlight.results;
> 369 | await expect(resultLocator).toHaveCount(2);
| ^
370 | await expect(resultLocator.first()).toHaveAttribute("aria-selected", "true");
371 | await expect(resultLocator.last()).toHaveAttribute("aria-selected", "false");
372 |
at /home/runner/work/element-web/element-web/playwright/e2e/spotlight/spotlight.spec.ts:369:37
|
Run Playwright tests:
[Chrome] › timeline/timeline.spec.ts#L1
[Chrome] › timeline/timeline.spec.ts took 1.3m
|
Run Playwright tests:
[Chrome] › spaces/spaces.spec.ts#L1
[Chrome] › spaces/spaces.spec.ts took 53.8s
|
Run Playwright tests:
[Chrome] › spaces/threads-activity-centre/threadsActivityCentre.spec.ts#L1
[Chrome] › spaces/threads-activity-centre/threadsActivityCentre.spec.ts took 48.0s
|
Run Playwright tests:
[Chrome] › threads/threads.spec.ts#L1
[Chrome] › threads/threads.spec.ts took 19.1s
|
Run Playwright tests
1 flaky
[Chrome] › spotlight/spotlight.spec.ts:362:5 › Spotlight › should be able to navigate results via keyboard
3 skipped
56 passed (5.2m)
|
Loading