Skip to content

Refactor UI tests

Refactor UI tests #99

Triggered via issue October 8, 2024 19:01
@brichetbrichet
commented on #86 4b0a1eb
Status Success
Total duration 10m 32s
Artifacts 2

update-integration-tests.yml

on: issue_comment
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 1 notice
tests/navigation.spec.ts:180:9 › #messagesNavigation › navigation with new unread message › should have unread icon for new messages: python/jupyterlab-collaborative-chat/ui-tests/tests/navigation.spec.ts#L1
1) tests/navigation.spec.ts:180:9 › #messagesNavigation › navigation with new unread message › should have unread icon for new messages Test timeout of 60000ms exceeded.
tests/navigation.spec.ts:197:9 › #messagesNavigation › navigation with new unread message › should navigate to new unread message: python/jupyterlab-collaborative-chat/ui-tests/tests/navigation.spec.ts#L1
2) tests/navigation.spec.ts:197:9 › #messagesNavigation › navigation with new unread message › should navigate to new unread message Test timeout of 60000ms exceeded.
tests/navigation.spec.ts:197:9 › #messagesNavigation › navigation with new unread message › should navigate to new unread message: python/jupyterlab-collaborative-chat/ui-tests/tests/test-utils.ts#L37
2) tests/navigation.spec.ts:197:9 › #messagesNavigation › navigation with new unread message › should navigate to new unread message Error: locator.isChecked: Target page, context or browser has been closed at tests/test-utils.ts:37 35 | }, filename); 36 | await page.waitForCondition( > 37 | async () => await page.activity.isTabActive(filename) | ^ 38 | ); 39 | return (await page.activity.getPanelLocator(filename)) as Locator; 40 | }; at Object.isInSimpleMode (/home/runner/work/jupyter-chat/jupyter-chat/python/jupyterlab-collaborative-chat/ui-tests/node_modules/@jupyterlab/galata/src/utils.ts:311:17) at ActivityHelper.isTabActive (/home/runner/work/jupyter-chat/jupyter-chat/python/jupyterlab-collaborative-chat/ui-tests/node_modules/@jupyterlab/galata/src/helpers/activity.ts:46:21) at /home/runner/work/jupyter-chat/jupyter-chat/python/jupyterlab-collaborative-chat/ui-tests/tests/test-utils.ts:37:37 at Timeout.check (/home/runner/work/jupyter-chat/jupyter-chat/python/jupyterlab-collaborative-chat/ui-tests/node_modules/@jupyterlab/galata/src/utils.ts:183:33)
tests/notifications.spec.ts:89:7 › #notifications › should receive notification on unread message: python/jupyterlab-collaborative-chat/ui-tests/tests/notifications.spec.ts#L99
3) tests/notifications.spec.ts:89:7 › #notifications › should receive notification on unread message Error: expect(received).toHaveLength(expected) Expected length: 1 Received length: 0 Received array: [] 97 | ); 98 | const notifications = await page.notifications; > 99 | expect(notifications).toHaveLength(1); | ^ 100 | 101 | // TODO: fix it, the notification should be info but is 'default' 102 | // expect(notifications[0].type).toBe('info'); at /home/runner/work/jupyter-chat/jupyter-chat/python/jupyterlab-collaborative-chat/ui-tests/tests/notifications.spec.ts:99:27
tests/notifications.spec.ts:128:7 › #notifications › should update existing notification on new message: python/jupyterlab-collaborative-chat/ui-tests/tests/notifications.spec.ts#L1
4) tests/notifications.spec.ts:128:7 › #notifications › should update existing notification on new message Test timeout of 60000ms exceeded.
tests/notifications.spec.ts:128:7 › #notifications › should update existing notification on new message: python/jupyterlab-collaborative-chat/ui-tests/tests/test-utils.ts#L37
4) tests/notifications.spec.ts:128:7 › #notifications › should update existing notification on new message Error: locator.isChecked: Target page, context or browser has been closed at tests/test-utils.ts:37 35 | }, filename); 36 | await page.waitForCondition( > 37 | async () => await page.activity.isTabActive(filename) | ^ 38 | ); 39 | return (await page.activity.getPanelLocator(filename)) as Locator; 40 | }; at Object.isInSimpleMode (/home/runner/work/jupyter-chat/jupyter-chat/python/jupyterlab-collaborative-chat/ui-tests/node_modules/@jupyterlab/galata/src/utils.ts:311:17) at ActivityHelper.isTabActive (/home/runner/work/jupyter-chat/jupyter-chat/python/jupyterlab-collaborative-chat/ui-tests/node_modules/@jupyterlab/galata/src/helpers/activity.ts:46:21) at /home/runner/work/jupyter-chat/jupyter-chat/python/jupyterlab-collaborative-chat/ui-tests/tests/test-utils.ts:37:37 at Timeout.check (/home/runner/work/jupyter-chat/jupyter-chat/python/jupyterlab-collaborative-chat/ui-tests/node_modules/@jupyterlab/galata/src/utils.ts:183:33)
tests/notifications.spec.ts:153:7 › #notifications › should remove notifications from settings: python/jupyterlab-collaborative-chat/ui-tests/tests/notifications.spec.ts#L1
5) tests/notifications.spec.ts:153:7 › #notifications › should remove notifications from settings Test timeout of 60000ms exceeded.
tests/notifications.spec.ts:153:7 › #notifications › should remove notifications from settings: python/jupyterlab-collaborative-chat/ui-tests/tests/test-utils.ts#L37
5) tests/notifications.spec.ts:153:7 › #notifications › should remove notifications from settings Error: locator.isChecked: Target page, context or browser has been closed at tests/test-utils.ts:37 35 | }, filename); 36 | await page.waitForCondition( > 37 | async () => await page.activity.isTabActive(filename) | ^ 38 | ); 39 | return (await page.activity.getPanelLocator(filename)) as Locator; 40 | }; at Object.isInSimpleMode (/home/runner/work/jupyter-chat/jupyter-chat/python/jupyterlab-collaborative-chat/ui-tests/node_modules/@jupyterlab/galata/src/utils.ts:311:17) at ActivityHelper.isTabActive (/home/runner/work/jupyter-chat/jupyter-chat/python/jupyterlab-collaborative-chat/ui-tests/node_modules/@jupyterlab/galata/src/helpers/activity.ts:46:21) at /home/runner/work/jupyter-chat/jupyter-chat/python/jupyterlab-collaborative-chat/ui-tests/tests/test-utils.ts:37:37 at Timeout.check (/home/runner/work/jupyter-chat/jupyter-chat/python/jupyterlab-collaborative-chat/ui-tests/node_modules/@jupyterlab/galata/src/utils.ts:183:33)
update-snapshots
Process completed with exit code 1.
🎭 Playwright Run Summary
5 failed tests/navigation.spec.ts:180:9 › #messagesNavigation › navigation with new unread message › should have unread icon for new messages tests/navigation.spec.ts:197:9 › #messagesNavigation › navigation with new unread message › should navigate to new unread message tests/notifications.spec.ts:89:7 › #notifications › should receive notification on unread message tests/notifications.spec.ts:128:7 › #notifications › should update existing notification on new message tests/notifications.spec.ts:153:7 › #notifications › should remove notifications from settings ─ 2 skipped 74 passed (5.5m)

Artifacts

Produced during runtime
Name Size
playwright-report
708 KB
playwright-snapshots
26.8 KB