Improve (and fix) unread messages and navigation (#123) #465
Annotations
10 errors, 2 warnings, and 1 notice
Execute integration tests:
ui-tests/tests/chat-file.spec.ts#L1
1) tests/chat-file.spec.ts:166:7 › #ychat › should add an id to the chat metadata ────────────────
Test timeout of 60000ms exceeded.
|
Execute integration tests:
ui-tests/http:/localhost:8888/static/lab/jlab_core.9ae09eead5139c587af4.js?v=9ae09eead5139c587af4#L1
1) tests/chat-file.spec.ts:166:7 › #ychat › should add an id to the chat metadata ────────────────
Error: proxy.evaluate: Error: Invalid response: 404 Not Found
at i.create (http://localhost:8888/static/lab/jlab_core.9ae09eead5139c587af4.js?v=9ae09eead5139c587af4:1:1432098)
at async m.get (http://localhost:8888/static/lab/jlab_core.9ae09eead5139c587af4.js?v=9ae09eead5139c587af4:1:1376887)
at async eval (eval at evaluate (:226:30), <anonymous>:2:12)
at async <anonymous>:252:30
at i.create (/home/runner/work/jupyter-chat/jupyter-chat/ui-tests/http:/localhost:8888/static/lab/jlab_core.9ae09eead5139c587af4.js?v=9ae09eead5139c587af4:1:1432098)
at async m.get (/home/runner/work/jupyter-chat/jupyter-chat/ui-tests/http:/localhost:8888/static/lab/jlab_core.9ae09eead5139c587af4.js?v=9ae09eead5139c587af4:1:1376887)
at async eval (/home/runner/work/jupyter-chat/jupyter-chat/ui-tests/eval at evaluate (:226:30), <anonymous>:2:12)
at /home/runner/work/jupyter-chat/jupyter-chat/ui-tests/async <anonymous>:252:30
at readFileContent (/home/runner/work/jupyter-chat/jupyter-chat/ui-tests/tests/chat-file.spec.ts:32:21)
at hasId (/home/runner/work/jupyter-chat/jupyter-chat/ui-tests/tests/chat-file.spec.ts:173:27)
at Timeout.check (/home/runner/work/jupyter-chat/jupyter-chat/ui-tests/node_modules/@jupyterlab/galata/src/utils.ts:183:33)
|
Execute integration tests:
ui-tests/tests/notifications.spec.ts#L121
2) tests/notifications.spec.ts:108:7 › #notifications › should remove notification when the message is read
Error: expect(received).toHaveLength(expected)
Expected length: 1
Received length: 0
Received array: []
119 | );
120 | let notifications = await page.notifications;
> 121 | expect(notifications).toHaveLength(1);
| ^
122 |
123 | await messages.last().scrollIntoViewIfNeeded();
124 | await page.waitForCondition(
at /home/runner/work/jupyter-chat/jupyter-chat/ui-tests/tests/notifications.spec.ts:121:27
|
Execute integration tests:
ui-tests/tests/raw-time.spec.ts#L1
3) tests/raw-time.spec.ts:58:7 › #raw_time › message timestamp should be raw according to file content
Test timeout of 60000ms exceeded.
|
Execute integration tests:
ui-tests/tests/raw-time.spec.ts#L67
3) tests/raw-time.spec.ts:58:7 › #raw_time › message timestamp should be raw according to file content
Error: locator.getAttribute: Test timeout of 60000ms exceeded.
Call log:
- waiting for getByRole('main').getByRole('tabpanel', { name: 'my-chat.chat' }).locator('.jp-chat-messages-container .jp-chat-message').locator('.jp-chat-message-time').first()
65 |
66 | const raw_time = messages.locator('.jp-chat-message-time').first();
> 67 | expect(await raw_time.getAttribute('title')).toBe('Unverified time');
| ^
68 | expect(await raw_time.textContent()).toMatch(/\*$/);
69 |
70 | const verified_time = messages.locator('.jp-chat-message-time').last();
at /home/runner/work/jupyter-chat/jupyter-chat/ui-tests/tests/raw-time.spec.ts:67:27
|
Execute integration tests:
ui-tests/tests/send-message.spec.ts#L1
4) tests/send-message.spec.ts:167:7 › #sendMessages › should send with cell content ──────────────
Test timeout of 60000ms exceeded.
|
Execute integration tests:
ui-tests/tests/send-message.spec.ts#L179
4) tests/send-message.spec.ts:167:7 › #sendMessages › should send with cell content ──────────────
Error: locator.click: Test timeout of 60000ms exceeded.
Call log:
- waiting for locator('li:has(div.lm-MenuBar-itemLabel:text-is("File"))')
- locator resolved to <li tabindex="0" role="menuitem" aria-haspopup="true…>…</li>
- attempting click action
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <dialog aria-modal="true" class="lm-Widget jp-Dialog jp-…>…</dialog> intercepts pointer events
- retrying click action, attempt #1
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <dialog aria-modal="true" class="lm-Widget jp-Dialog jp-…>…</dialog> intercepts pointer events
- retrying click action, attempt #2
- waiting 20ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <dialog aria-modal="true" class="lm-Widget jp-Dialog jp-…>…</dialog> intercepts pointer events
- retrying click action, attempt #3
- waiting 100ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <dialog aria-modal="true" class="lm-Widget jp-Dialog jp-…>…</dialog> intercepts pointer events
- retrying click action, attempt #4
- waiting 100ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <dialog aria-modal="true" class="lm-Widget jp-Dialog jp-…>…</dialog> intercepts pointer events
- retrying click action, attempt #5
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <dialog aria-modal="true" class="lm-Widget jp-Dialog jp-…>…</dialog> intercepts pointer events
- retrying click action, attempt #6
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <dialog aria-modal="true" class="lm-Widget jp-Dialog jp-…>…</dialog> intercepts pointer events
- retrying click action, attempt #7
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <dialog aria-modal="true" class="lm-Widget jp-Dialog jp-…>…</dialog> intercepts pointer events
- retrying click action, attempt #8
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <dialog aria-modal="true" class="lm-Widget jp-Dialog jp-…>…</dialog> intercepts pointer events
- retrying click action, attempt #9
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <dialog aria-modal="true" class="lm-Widget jp-Dialog jp-…>…</dialog> intercepts pointer events
- retrying click action, attempt #10
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <dialog aria-modal="true" class="lm-Widget jp-Dialog jp-…>…</dia
|
Execute integration tests:
ui-tests/tests/send-message.spec.ts#L1
4) tests/send-message.spec.ts:167:7 › #sendMessages › should send with cell content ──────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 60000ms exceeded.
|
Execute integration tests:
ui-tests/tests/test-utils.ts#L51
4) tests/send-message.spec.ts:167:7 › #sendMessages › should send with cell content ──────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.isChecked: Target page, context or browser has been closed
at tests/test-utils.ts:51
49 | const tabName = splitPath[splitPath.length - 1];
50 | await page.waitForCondition(
> 51 | async () => await page.activity.isTabActive(tabName)
| ^
52 | );
53 | panel = await page.activity.getPanelLocator(tabName);
54 |
at Object.isInSimpleMode (/home/runner/work/jupyter-chat/jupyter-chat/ui-tests/node_modules/@jupyterlab/galata/src/utils.ts:311:17)
at ActivityHelper.isTabActive (/home/runner/work/jupyter-chat/jupyter-chat/ui-tests/node_modules/@jupyterlab/galata/src/helpers/activity.ts:46:21)
at /home/runner/work/jupyter-chat/jupyter-chat/ui-tests/tests/test-utils.ts:51:37
at Timeout.check (/home/runner/work/jupyter-chat/jupyter-chat/ui-tests/node_modules/@jupyterlab/galata/src/utils.ts:183:33)
|
Execute integration tests:
ui-tests/tests/unread.spec.ts#L1
5) tests/unread.spec.ts:56:9 › #messagesNavigation › navigation without unread message › should navigate to last message
Test timeout of 60000ms exceeded.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "jupyterlab_chat-artifacts", "jupyterlab_chat-notebook-playwright-tests", "jupyterlab_chat-playwright-tests".
Please update your workflow to use v4 of the artifact actions.
Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
|
Execute integration tests
5 flaky
tests/chat-file.spec.ts:166:7 › #ychat › should add an id to the chat metadata ─────────────────
tests/notifications.spec.ts:108:7 › #notifications › should remove notification when the message is read
tests/raw-time.spec.ts:58:7 › #raw_time › message timestamp should be raw according to file content
tests/send-message.spec.ts:167:7 › #sendMessages › should send with cell content ───────────────
tests/unread.spec.ts:56:9 › #messagesNavigation › navigation without unread message › should navigate to last message
83 passed (7.3m)
|
Loading