Skip to content

Configure ui-tests for lite deployment #985

Configure ui-tests for lite deployment

Configure ui-tests for lite deployment #985

Triggered via issue February 26, 2025 08:57
@arjxn-pyarjxn-py
commented on #489 0e549d1
Status Failure
Total duration 8m 38s
Artifacts 2

update_galata_references.yaml

on: issue_comment
update-snapshots
8m 27s
update-snapshots
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 notice
tests/export.spec.ts:14:7 › #export › should have the menu item: ui-tests/tests/export.spec.ts#L18
1) tests/export.spec.ts:14:7 › #export › should have the menu item ─────────────────────────────── Error: expect(received).not.toBeNull() Received: null 16 | await page.menu.open('File'); 17 | let menuItem = await page.menu.getMenuItem('File>Export To QGZ'); > 18 | expect(menuItem).not.toBeNull(); | ^ 19 | expect(await menuItem?.getAttribute('aria-disabled')).toBeTruthy(); 20 | await page.menu.closeAll(); 21 | at /home/runner/work/jupytergis/jupytergis/ui-tests/tests/export.spec.ts:18:26
tests/export.spec.ts:14:7 › #export › should have the menu item: ui-tests/tests/export.spec.ts#L18
1) tests/export.spec.ts:14:7 › #export › should have the menu item ─────────────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).not.toBeNull() Received: null 16 | await page.menu.open('File'); 17 | let menuItem = await page.menu.getMenuItem('File>Export To QGZ'); > 18 | expect(menuItem).not.toBeNull(); | ^ 19 | expect(await menuItem?.getAttribute('aria-disabled')).toBeTruthy(); 20 | await page.menu.closeAll(); 21 | at /home/runner/work/jupytergis/jupytergis/ui-tests/tests/export.spec.ts:18:26
tests/export.spec.ts:29:7 › #export › should not export to qgis on cancel: ui-tests/tests/export.spec.ts#L34
2) tests/export.spec.ts:29:7 › #export › should not export to qgis on cancel ───────────────────── Error: Timed out 5000ms waiting for expect(locator).toBeAttached() Locator: locator('.jp-Dialog') Expected: attached Received: <element(s) not found> Call log: - expect.toBeAttached with timeout 5000ms - waiting for locator('.jp-Dialog') 32 | 33 | const dialog = page.locator('.jp-Dialog'); > 34 | await expect(dialog).toBeAttached(); | ^ 35 | await dialog.locator('.jp-mod-reject').click(); 36 | await page.filebrowser.refresh(); 37 | expect( at /home/runner/work/jupytergis/jupytergis/ui-tests/tests/export.spec.ts:34:26
tests/export.spec.ts:29:7 › #export › should not export to qgis on cancel: ui-tests/tests/export.spec.ts#L34
2) tests/export.spec.ts:29:7 › #export › should not export to qgis on cancel ───────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toBeAttached() Locator: locator('.jp-Dialog') Expected: attached Received: <element(s) not found> Call log: - expect.toBeAttached with timeout 5000ms - waiting for locator('.jp-Dialog') 32 | 33 | const dialog = page.locator('.jp-Dialog'); > 34 | await expect(dialog).toBeAttached(); | ^ 35 | await dialog.locator('.jp-mod-reject').click(); 36 | await page.filebrowser.refresh(); 37 | expect( at /home/runner/work/jupytergis/jupytergis/ui-tests/tests/export.spec.ts:34:26
tests/export.spec.ts:42:7 › #export › should export to qgis with default name: ui-tests/tests/export.spec.ts#L47
3) tests/export.spec.ts:42:7 › #export › should export to qgis with default name ───────────────── Error: Timed out 5000ms waiting for expect(locator).toBeAttached() Locator: locator('.jp-Dialog') Expected: attached Received: <element(s) not found> Call log: - expect.toBeAttached with timeout 5000ms - waiting for locator('.jp-Dialog') 45 | 46 | const dialog = page.locator('.jp-Dialog'); > 47 | await expect(dialog).toBeAttached(); | ^ 48 | await dialog.locator('.jp-mod-accept').click(); 49 | await page.filebrowser.refresh(); 50 | expect( at /home/runner/work/jupytergis/jupytergis/ui-tests/tests/export.spec.ts:47:26
tests/export.spec.ts:42:7 › #export › should export to qgis with default name: ui-tests/tests/export.spec.ts#L47
3) tests/export.spec.ts:42:7 › #export › should export to qgis with default name ───────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toBeAttached() Locator: locator('.jp-Dialog') Expected: attached Received: <element(s) not found> Call log: - expect.toBeAttached with timeout 5000ms - waiting for locator('.jp-Dialog') 45 | 46 | const dialog = page.locator('.jp-Dialog'); > 47 | await expect(dialog).toBeAttached(); | ^ 48 | await dialog.locator('.jp-mod-accept').click(); 49 | await page.filebrowser.refresh(); 50 | expect( at /home/runner/work/jupytergis/jupytergis/ui-tests/tests/export.spec.ts:47:26
tests/export.spec.ts:55:7 › #export › should export to qgis with custom name: ui-tests/tests/export.spec.ts#L61
4) tests/export.spec.ts:55:7 › #export › should export to qgis with custom name ────────────────── Error: Timed out 5000ms waiting for expect(locator).toBeAttached() Locator: locator('.jp-Dialog') Expected: attached Received: <element(s) not found> Call log: - expect.toBeAttached with timeout 5000ms - waiting for locator('.jp-Dialog') 59 | 60 | const dialog = page.locator('.jp-Dialog'); > 61 | await expect(dialog).toBeAttached(); | ^ 62 | await dialog.getByRole('textbox').fill(filename); 63 | await dialog.locator('.jp-mod-accept').click(); 64 | await page.filebrowser.refresh(); at /home/runner/work/jupytergis/jupytergis/ui-tests/tests/export.spec.ts:61:26
tests/export.spec.ts:55:7 › #export › should export to qgis with custom name: ui-tests/tests/export.spec.ts#L61
4) tests/export.spec.ts:55:7 › #export › should export to qgis with custom name ────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toBeAttached() Locator: locator('.jp-Dialog') Expected: attached Received: <element(s) not found> Call log: - expect.toBeAttached with timeout 5000ms - waiting for locator('.jp-Dialog') 59 | 60 | const dialog = page.locator('.jp-Dialog'); > 61 | await expect(dialog).toBeAttached(); | ^ 62 | await dialog.getByRole('textbox').fill(filename); 63 | await dialog.locator('.jp-mod-accept').click(); 64 | await page.filebrowser.refresh(); at /home/runner/work/jupytergis/jupytergis/ui-tests/tests/export.spec.ts:61:26
tests/ui.spec.ts:43:11 › UI Test › File operations › Should be able to render buildings.qgz without error: ui-tests/tests/ui.spec.ts#L1
5) tests/ui.spec.ts:43:11 › UI Test › File operations › Should be able to render buildings.qgz without error Test timeout of 60000ms exceeded.
tests/ui.spec.ts:43:11 › UI Test › File operations › Should be able to render buildings.qgz without error: ui-tests/tests/ui.spec.ts#L48
5) tests/ui.spec.ts:43:11 › UI Test › File operations › Should be able to render buildings.qgz without error Error: locator.waitFor: Test timeout of 60000ms exceeded. Call log: - waiting for getByRole('main').getByRole('tab', { name: /^buildings.qgz/ }).last() to be visible 46 | await page.goto(); 47 | const fullPath = `testDir/${file}`; > 48 | await page.notebook.openByPath(fullPath); | ^ 49 | await page.notebook.activate(fullPath); 50 | await page.locator('div.jGIS-Spinner').waitFor({ state: 'hidden' }); 51 | await page.waitForTimeout(1000); at FileBrowserHelper.open (/home/runner/work/jupytergis/jupytergis/ui-tests/node_modules/@jupyterlab/galata/src/helpers/filebrowser.ts:131:10) at NotebookHelper.openByPath (/home/runner/work/jupytergis/jupytergis/ui-tests/node_modules/@jupyterlab/galata/src/helpers/notebook.ts:91:5) at /home/runner/work/jupytergis/jupytergis/ui-tests/tests/ui.spec.ts:48:9
🎭 Playwright Run Summary
5 failed tests/export.spec.ts:14:7 › #export › should have the menu item ──────────────────────────────── tests/export.spec.ts:29:7 › #export › should not export to qgis on cancel ────────────────────── tests/export.spec.ts:42:7 › #export › should export to qgis with default name ────────────────── tests/export.spec.ts:55:7 › #export › should export to qgis with custom name ─────────────────── tests/ui.spec.ts:43:11 › UI Test › File operations › Should be able to render buildings.qgz without error 1 flaky tests/layer-browser.spec.ts:137:7 › #layerBrowser › search bar should filter tiles ───────────── 42 passed (5.9m)

Artifacts

Produced during runtime
Name Size
playwright-report
48.1 MB
playwright-snapshots
3.73 MB