Fix more flaky playwright tests #4166
Annotations
10 errors, 5 warnings, and 1 notice
Run Playwright tests:
playwright/e2e/sliding-sync/sliding-sync.spec.ts#L1
1) [WebKit] › sliding-sync/sliding-sync.spec.ts:370:5 › Sliding Sync › should send unsubscribe_rooms for every room switch
Test timeout of 30000ms exceeded.
|
Run Playwright tests:
playwright/e2e/sliding-sync/sliding-sync.spec.ts#L404
1) [WebKit] › sliding-sync/sliding-sync.spec.ts:370:5 › Sliding Sync › should send unsubscribe_rooms for every room switch
Error: page.waitForRequest: Test timeout of 30000ms exceeded.
402 | await Promise.all([
403 | page.waitForRequest(matchRoomSubRequest(roomPId)),
> 404 | page.waitForRequest(matchRoomUnsubRequest(roomAId)),
| ^
405 | page.getByRole("treeitem", { name: "Pineapple", exact: true }).click(),
406 | ]);
407 |
at /home/runner/work/element-web/element-web/playwright/e2e/sliding-sync/sliding-sync.spec.ts:404:18
|
Run Playwright tests:
playwright/e2e/sliding-sync/sliding-sync.spec.ts#L1
1) [WebKit] › sliding-sync/sliding-sync.spec.ts:370:5 › Sliding Sync › should send unsubscribe_rooms for every room switch
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 30000ms exceeded.
|
Run Playwright tests:
playwright/e2e/sliding-sync/sliding-sync.spec.ts#L404
1) [WebKit] › sliding-sync/sliding-sync.spec.ts:370:5 › Sliding Sync › should send unsubscribe_rooms for every room switch
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: page.waitForRequest: Test timeout of 30000ms exceeded.
402 | await Promise.all([
403 | page.waitForRequest(matchRoomSubRequest(roomPId)),
> 404 | page.waitForRequest(matchRoomUnsubRequest(roomAId)),
| ^
405 | page.getByRole("treeitem", { name: "Pineapple", exact: true }).click(),
406 | ]);
407 |
at /home/runner/work/element-web/element-web/playwright/e2e/sliding-sync/sliding-sync.spec.ts:404:18
|
Run Playwright tests:
playwright/e2e/sliding-sync/sliding-sync.spec.ts#L1
1) [WebKit] › sliding-sync/sliding-sync.spec.ts:370:5 › Sliding Sync › should send unsubscribe_rooms for every room switch
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 30000ms exceeded.
|
Run Playwright tests:
playwright/e2e/sliding-sync/sliding-sync.spec.ts#L404
1) [WebKit] › sliding-sync/sliding-sync.spec.ts:370:5 › Sliding Sync › should send unsubscribe_rooms for every room switch
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: page.waitForRequest: Test timeout of 30000ms exceeded.
402 | await Promise.all([
403 | page.waitForRequest(matchRoomSubRequest(roomPId)),
> 404 | page.waitForRequest(matchRoomUnsubRequest(roomAId)),
| ^
405 | page.getByRole("treeitem", { name: "Pineapple", exact: true }).click(),
406 | ]);
407 |
at /home/runner/work/element-web/element-web/playwright/e2e/sliding-sync/sliding-sync.spec.ts:404:18
|
Run Playwright tests:
playwright/e2e/room/room.spec.ts#L96
2) [WebKit] › room/room.spec.ts:56:9 › Room Directory › should memorize the timeline position when switch Room A -> Room B -> Room A
Error: Timed out 5000ms waiting for expect(locator).toBeInViewport()
Locator: locator('.mx_MTextBody .mx_EventTile_body').getByText('test0')
Expected: in viewport
Received: outside viewport
Call log:
- expect.toBeInViewport with timeout 5000ms
- waiting for locator('.mx_MTextBody .mx_EventTile_body').getByText('test0')
6 × locator resolved to <div dir="auto" class="mx_EventTile_body translate">test0</div>
- unexpected value "viewport ratio 0"
94 | // The timeline should display the first message
95 | // The previous position before switching to Room B should be remembered
> 96 | await expect(page.locator(".mx_MTextBody .mx_EventTile_body").getByText("test0")).toBeInViewport();
| ^
97 | });
98 | });
99 |
at /home/runner/work/element-web/element-web/playwright/e2e/room/room.spec.ts:96:91
|
Run Playwright tests:
playwright/e2e/room_options/marked_unread.spec.ts#L1
3) [WebKit] › room_options/marked_unread.spec.ts:25:9 › Mark as Unread › should mark a room as unread
Test timeout of 30000ms exceeded.
|
Run Playwright tests:
playwright/e2e/room_options/marked_unread.spec.ts#L51
3) [WebKit] › room_options/marked_unread.spec.ts:25:9 › Mark as Unread › should mark a room as unread
Error: locator.click: Test timeout of 30000ms exceeded.
Call log:
- waiting for getByLabel('The mark unread test room').getByRole('button', { name: 'Room options' })
- locator resolved to <div tabindex="0" role="button" aria-haspopup="true" aria-expanded="false" aria-label="Room options" class="mx_AccessibleButton mx_RoomTile_menuButton"></div>
- attempting click action
2 × waiting for element to be visible, enabled and stable
- element is not visible
- retrying click action
- waiting 20ms
2 × waiting for element to be visible, enabled and stable
- element is not visible
- retrying click action
- waiting 100ms
47 × waiting for element to be visible, enabled and stable
- element is not visible
- retrying click action
- waiting 500ms
49 | const roomTile = page.getByLabel(TEST_ROOM_NAME);
50 | await roomTile.focus();
> 51 | await roomTile.getByRole("button", { name: "Room options" }).click();
| ^
52 | await page.getByRole("menuitem", { name: "Mark as unread" }).click();
53 |
54 | await expect(page.getByLabel(TEST_ROOM_NAME + " Unread messages.")).toBeVisible();
at /home/runner/work/element-web/element-web/playwright/e2e/room_options/marked_unread.spec.ts:51:70
|
Run Playwright tests
Process completed with exit code 1.
|
Run Playwright tests:
[WebKit] › spotlight/spotlight.spec.ts#L1
[WebKit] › spotlight/spotlight.spec.ts took 2.4m
|
Run Playwright tests:
[WebKit] › spaces/threads-activity-centre/threadsActivityCentre.spec.ts#L1
[WebKit] › spaces/threads-activity-centre/threadsActivityCentre.spec.ts took 1.1m
|
Run Playwright tests:
[WebKit] › spaces/spaces.spec.ts#L1
[WebKit] › spaces/spaces.spec.ts took 35.0s
|
Run Playwright tests:
[WebKit] › room/room-header.spec.ts#L1
[WebKit] › room/room-header.spec.ts took 32.3s
|
Run Playwright tests:
[WebKit] › settings/account-user-settings-tab.spec.ts#L1
[WebKit] › settings/account-user-settings-tab.spec.ts took 30.0s
|
Run Playwright tests
1 failed
[WebKit] › sliding-sync/sliding-sync.spec.ts:370:5 › Sliding Sync › should send unsubscribe_rooms for every room switch
2 flaky
[WebKit] › room/room.spec.ts:56:9 › Room Directory › should memorize the timeline position when switch Room A -> Room B -> Room A
[WebKit] › room_options/marked_unread.spec.ts:25:9 › Mark as Unread › should mark a room as unread
9 skipped
75 passed (11.3m)
|
Loading