Skip to content

Fix flaky mobile UI tests #1865

Fix flaky mobile UI tests

Fix flaky mobile UI tests #1865

Triggered via pull request February 26, 2024 12:17
Status Failure
Total duration 13m 18s
Artifacts 8

ui-tests.yml

on: pull_request
Matrix: ui-tests
Fit to window
Zoom out
Zoom in

Annotations

38 errors, 3 warnings, and 4 notices
[firefox] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page: ui-tests/test/mobile.spec.ts#L1
1) [firefox] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page Test timeout of 60000ms exceeded.
[firefox] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page: ui-tests/test/mobile.spec.ts#L32
1) [firefox] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page Error: proxy.waitForEvent: Page closed =========================== logs =========================== waiting for event "popup" ============================================================ 30 | // Create a new notebook 31 | const [notebook] = await Promise.all([ > 32 | page.waitForEvent('popup'), | ^ 33 | page.click('text="New"'), 34 | page.click('text="Python 3 (ipykernel)"'), 35 | ]); at /home/runner/work/notebook/notebook/ui-tests/test/mobile.spec.ts:32:12
[firefox] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page: ui-tests/test/mobile.spec.ts#L1
1) [firefox] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page Pending operations: - proxy.click at test/mobile.spec.ts:33:12 - proxy.click at test/mobile.spec.ts:34:12
[firefox] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page: ui-tests/test/mobile.spec.ts#L1
1) [firefox] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 60000ms exceeded.
[firefox] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page: ui-tests/test/mobile.spec.ts#L32
1) [firefox] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: proxy.waitForEvent: Page closed =========================== logs =========================== waiting for event "popup" ============================================================ 30 | // Create a new notebook 31 | const [notebook] = await Promise.all([ > 32 | page.waitForEvent('popup'), | ^ 33 | page.click('text="New"'), 34 | page.click('text="Python 3 (ipykernel)"'), 35 | ]); at /home/runner/work/notebook/notebook/ui-tests/test/mobile.spec.ts:32:12
[firefox] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page: ui-tests/test/mobile.spec.ts#L1
1) [firefox] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Pending operations: - proxy.click at test/mobile.spec.ts:33:12 - proxy.click at test/mobile.spec.ts:34:12
[firefox] › test/filebrowser.spec.ts:31:7 › File Browser › Select one file: ui-tests/test/filebrowser.spec.ts#L39
2) [firefox] › test/filebrowser.spec.ts:31:7 › File Browser › Select one file ──────────────────── Error: expect(received).toBeVisible() Call log: - expect.toBeVisible with timeout 5000ms - waiting for getByRole('toolbar').getByText('Download') 37 | 38 | ['Rename', 'Delete', 'Open', 'Download', 'Delete'].forEach(async (text) => { > 39 | expect(toolbar.getByText(text)).toBeVisible(); | ^ 40 | }); 41 | }); 42 | at forEach (/home/runner/work/notebook/notebook/ui-tests/test/filebrowser.spec.ts:39:39) at /home/runner/work/notebook/notebook/ui-tests/test/filebrowser.spec.ts:38:56
[firefox] › test/links.spec.ts:21:7 › Local Links › Open the current directory: ui-tests/test/links.spec.ts#L1
3) [firefox] › test/links.spec.ts:21:7 › Local Links › Open the current directory ──────────────── Test timeout of 60000ms exceeded.
[firefox] › test/links.spec.ts:21:7 › Local Links › Open the current directory: ui-tests/test/links.spec.ts#L25
3) [firefox] › test/links.spec.ts:21:7 › Local Links › Open the current directory ──────────────── Error: proxy.waitForEvent: Page closed =========================== logs =========================== waiting for event "popup" ============================================================ 23 | 24 | const [current] = await Promise.all([ > 25 | page.waitForEvent('popup'), | ^ 26 | page.getByText('Current Directory').last().click(), 27 | ]); 28 | at /home/runner/work/notebook/notebook/ui-tests/test/links.spec.ts:25:12
[firefox] › test/links.spec.ts:21:7 › Local Links › Open the current directory: ui-tests/test/links.spec.ts#L1
3) [firefox] › test/links.spec.ts:21:7 › Local Links › Open the current directory ──────────────── Pending operations: - locator.click at test/links.spec.ts:26:50
[firefox] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page: ui-tests/test/mobile.spec.ts#L1
1) [firefox] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page Test timeout of 60000ms exceeded.
[firefox] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page: ui-tests/test/mobile.spec.ts#L32
1) [firefox] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page Error: proxy.waitForEvent: Page closed =========================== logs =========================== waiting for event "popup" ============================================================ 30 | // Create a new notebook 31 | const [notebook] = await Promise.all([ > 32 | page.waitForEvent('popup'), | ^ 33 | page.click('text="New"'), 34 | page.click('text="Python 3 (ipykernel)"'), 35 | ]); at /home/runner/work/notebook/notebook/ui-tests/test/mobile.spec.ts:32:12
[firefox] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page: ui-tests/test/mobile.spec.ts#L1
1) [firefox] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page Pending operations: - proxy.click at test/mobile.spec.ts:33:12 - proxy.click at test/mobile.spec.ts:34:12
[firefox] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page: ui-tests/test/mobile.spec.ts#L1
1) [firefox] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 60000ms exceeded.
[firefox] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page: ui-tests/test/mobile.spec.ts#L32
1) [firefox] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: proxy.waitForEvent: Page closed =========================== logs =========================== waiting for event "popup" ============================================================ 30 | // Create a new notebook 31 | const [notebook] = await Promise.all([ > 32 | page.waitForEvent('popup'), | ^ 33 | page.click('text="New"'), 34 | page.click('text="Python 3 (ipykernel)"'), 35 | ]); at /home/runner/work/notebook/notebook/ui-tests/test/mobile.spec.ts:32:12
[firefox] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page: ui-tests/test/mobile.spec.ts#L1
1) [firefox] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Pending operations: - proxy.click at test/mobile.spec.ts:33:12 - proxy.click at test/mobile.spec.ts:34:12
[firefox] › test/filebrowser.spec.ts:31:7 › File Browser › Select one file: ui-tests/test/filebrowser.spec.ts#L39
2) [firefox] › test/filebrowser.spec.ts:31:7 › File Browser › Select one file ──────────────────── Error: expect(received).toBeVisible() Call log: - expect.toBeVisible with timeout 5000ms - waiting for getByRole('toolbar').getByText('Open') 37 | 38 | ['Rename', 'Delete', 'Open', 'Download', 'Delete'].forEach(async (text) => { > 39 | expect(toolbar.getByText(text)).toBeVisible(); | ^ 40 | }); 41 | }); 42 | at forEach (/home/runner/work/notebook/notebook/ui-tests/test/filebrowser.spec.ts:39:39) at /home/runner/work/notebook/notebook/ui-tests/test/filebrowser.spec.ts:38:56
ui-tests (firefox)
Process completed with exit code 1.
[chromium] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page: ui-tests/test/mobile.spec.ts#L1
1) [chromium] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page Test timeout of 60000ms exceeded.
[chromium] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page: ui-tests/test/mobile.spec.ts#L32
1) [chromium] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page Error: proxy.waitForEvent: Page closed =========================== logs =========================== waiting for event "popup" ============================================================ 30 | // Create a new notebook 31 | const [notebook] = await Promise.all([ > 32 | page.waitForEvent('popup'), | ^ 33 | page.click('text="New"'), 34 | page.click('text="Python 3 (ipykernel)"'), 35 | ]); at /home/runner/work/notebook/notebook/ui-tests/test/mobile.spec.ts:32:12
[chromium] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page: ui-tests/test/mobile.spec.ts#L1
1) [chromium] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page Pending operations: - proxy.click at test/mobile.spec.ts:33:12 - proxy.click at test/mobile.spec.ts:34:12
[chromium] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page: ui-tests/test/mobile.spec.ts#L1
1) [chromium] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 60000ms exceeded.
[chromium] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page: ui-tests/test/mobile.spec.ts#L32
1) [chromium] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: proxy.waitForEvent: Page closed =========================== logs =========================== waiting for event "popup" ============================================================ 30 | // Create a new notebook 31 | const [notebook] = await Promise.all([ > 32 | page.waitForEvent('popup'), | ^ 33 | page.click('text="New"'), 34 | page.click('text="Python 3 (ipykernel)"'), 35 | ]); at /home/runner/work/notebook/notebook/ui-tests/test/mobile.spec.ts:32:12
[chromium] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page: ui-tests/test/mobile.spec.ts#L1
1) [chromium] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Pending operations: - proxy.click at test/mobile.spec.ts:33:12 - proxy.click at test/mobile.spec.ts:34:12
[chromium] › test/links.spec.ts:21:7 › Local Links › Open the current directory: ui-tests/test/links.spec.ts#L1
2) [chromium] › test/links.spec.ts:21:7 › Local Links › Open the current directory ─────────────── Test timeout of 60000ms exceeded.
[chromium] › test/links.spec.ts:21:7 › Local Links › Open the current directory: ui-tests/test/links.spec.ts#L25
2) [chromium] › test/links.spec.ts:21:7 › Local Links › Open the current directory ─────────────── Error: proxy.waitForEvent: Page closed =========================== logs =========================== waiting for event "popup" ============================================================ 23 | 24 | const [current] = await Promise.all([ > 25 | page.waitForEvent('popup'), | ^ 26 | page.getByText('Current Directory').last().click(), 27 | ]); 28 | at /home/runner/work/notebook/notebook/ui-tests/test/links.spec.ts:25:12
[chromium] › test/links.spec.ts:21:7 › Local Links › Open the current directory: ui-tests/test/links.spec.ts#L1
2) [chromium] › test/links.spec.ts:21:7 › Local Links › Open the current directory ─────────────── Pending operations: - locator.click at test/links.spec.ts:26:50
ui-tests (chromium)
Process completed with exit code 1.
[chromium] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page: ui-tests/test/mobile.spec.ts#L1
1) [chromium] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page Test timeout of 60000ms exceeded.
[chromium] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page: ui-tests/test/mobile.spec.ts#L32
1) [chromium] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page Error: proxy.waitForEvent: Page closed =========================== logs =========================== waiting for event "popup" ============================================================ 30 | // Create a new notebook 31 | const [notebook] = await Promise.all([ > 32 | page.waitForEvent('popup'), | ^ 33 | page.click('text="New"'), 34 | page.click('text="Python 3 (ipykernel)"'), 35 | ]); at /home/runner/work/notebook/notebook/ui-tests/test/mobile.spec.ts:32:12
[chromium] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page: ui-tests/test/mobile.spec.ts#L1
1) [chromium] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page Pending operations: - proxy.click at test/mobile.spec.ts:33:12 - proxy.click at test/mobile.spec.ts:34:12
[chromium] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page: ui-tests/test/mobile.spec.ts#L1
1) [chromium] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 60000ms exceeded.
[chromium] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page: ui-tests/test/mobile.spec.ts#L32
1) [chromium] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: proxy.waitForEvent: Page closed =========================== logs =========================== waiting for event "popup" ============================================================ 30 | // Create a new notebook 31 | const [notebook] = await Promise.all([ > 32 | page.waitForEvent('popup'), | ^ 33 | page.click('text="New"'), 34 | page.click('text="Python 3 (ipykernel)"'), 35 | ]); at /home/runner/work/notebook/notebook/ui-tests/test/mobile.spec.ts:32:12
[chromium] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page: ui-tests/test/mobile.spec.ts#L1
1) [chromium] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Pending operations: - proxy.click at test/mobile.spec.ts:33:12 - proxy.click at test/mobile.spec.ts:34:12
[chromium] › test/editor.spec.ts:35:7 › Editor › Renaming the file by clicking on the title: ui-tests/test/editor.spec.ts#L1
2) [chromium] › test/editor.spec.ts:35:7 › Editor › Renaming the file by clicking on the title ─── Test timeout of 60000ms exceeded.
[chromium] › test/editor.spec.ts:35:7 › Editor › Renaming the file by clicking on the title: ui-tests/test/editor.spec.ts#L23
2) [chromium] › test/editor.spec.ts:35:7 › Editor › Renaming the file by clicking on the title ─── Error: proxy.waitForNavigation: Navigation failed because page was closed! =========================== logs =========================== waiting for navigation until "load" ============================================================ 21 | await page.click('text="Rename"'), 22 | // wait until the URL is updated > 23 | await page.waitForNavigation(), | ^ 24 | ]); 25 | }; 26 | at processRenameDialog (/home/runner/work/notebook/notebook/ui-tests/test/editor.spec.ts:23:16) at /home/runner/work/notebook/notebook/ui-tests/test/editor.spec.ts:46:5
[chromium] › test/filebrowser.spec.ts:31:7 › File Browser › Select one file: ui-tests/test/filebrowser.spec.ts#L39
3) [chromium] › test/filebrowser.spec.ts:31:7 › File Browser › Select one file ─────────────────── Error: expect(received).toBeVisible() Call log: - expect.toBeVisible with timeout 5000ms - waiting for getByRole('toolbar').getByText('Delete') 37 | 38 | ['Rename', 'Delete', 'Open', 'Download', 'Delete'].forEach(async (text) => { > 39 | expect(toolbar.getByText(text)).toBeVisible(); | ^ 40 | }); 41 | }); 42 | at forEach (/home/runner/work/notebook/notebook/ui-tests/test/filebrowser.spec.ts:39:39) at /home/runner/work/notebook/notebook/ui-tests/test/filebrowser.spec.ts:38:56
ui-tests (chromium)
Process completed with exit code 1.
Build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-python@v4, actions/cache@v3, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
ui-tests (firefox)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-python@v4, actions/cache@v3, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
ui-tests (chromium)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-python@v4, actions/cache@v3, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
🎭 Playwright Run Summary
1 failed [firefox] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page 2 flaky [firefox] › test/filebrowser.spec.ts:31:7 › File Browser › Select one file ───────────────────── [firefox] › test/links.spec.ts:21:7 › Local Links › Open the current directory ───────────────── 32 passed (3.1m)
🎭 Playwright Run Summary
1 failed [firefox] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page 1 flaky [firefox] › test/filebrowser.spec.ts:31:7 › File Browser › Select one file ───────────────────── 33 passed (2.9m)
🎭 Playwright Run Summary
1 failed [chromium] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page 1 flaky [chromium] › test/links.spec.ts:21:7 › Local Links › Open the current directory ──────────────── 33 passed (3.2m)
🎭 Playwright Run Summary
1 failed [chromium] › test/mobile.spec.ts:26:7 › Mobile › The layout should be more compact on the notebook page 2 flaky [chromium] › test/editor.spec.ts:35:7 › Editor › Renaming the file by clicking on the title ──── [chromium] › test/filebrowser.spec.ts:31:7 › File Browser › Select one file ──────────────────── 32 passed (3.5m)

Artifacts

Produced during runtime
Name Size
notebook-chromium-test-assets Expired
1.11 MB
notebook-chromium-test-report Expired
1.77 MB
notebook-chromium-updated-snapshots Expired
356 KB
notebook-dist-1865 Expired
9.37 MB
notebook-firefox-test-assets Expired
489 KB
notebook-firefox-test-report Expired
1.14 MB
notebook-firefox-updated-snapshots Expired
358 KB
notebook-pkgs-1865 Expired
56.5 KB