Skip to content

Add js api

Add js api #2064

Triggered via pull request November 4, 2024 15:46
Status Failure
Total duration 9m 12s
Artifacts 18

test.yml

on: pull_request
Run pre-commit hook
4m 33s
Run pre-commit hook
Test JavaScript
4m 8s
Test JavaScript
Matrix: Test Python
check_links
46s
check_links
Make SDist
0s
Make SDist
Test Minimum Versions
0s
Test Minimum Versions
Test Prereleases
0s
Test Prereleases
Install from SDist and Test
0s
Install from SDist and Test
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 14 warnings, and 1 notice
Test Python (windows-latest, 3.9)
Process completed with exit code 1.
Test Python (macos-latest, 3.8)
[notice] A new release of pip is available: 21.1.1 -> 24.3.1 [notice] To update, run: python3.8 -m pip install --upgrade pip
tests/collaborationpanel.spec.ts:29:5 › collaboration panel should contains two items: ui-tests/tests/collaborationpanel.spec.ts#L41
1) tests/collaborationpanel.spec.ts:29:5 › collaboration panel should contains two items ───────── Error: Screenshot comparison failed: 963 pixels (ratio 0.01 of all image pixels) are different. Expected: /home/runner/work/jupyter-collaboration/jupyter-collaboration/ui-tests/test-results/tests-collaborationpanel-collaboration-panel-should-contains-two-items/collaborationPanelCollapsed-expected.png Received: /home/runner/work/jupyter-collaboration/jupyter-collaboration/ui-tests/test-results/tests-collaborationpanel-collaboration-panel-should-contains-two-items/collaborationPanelCollapsed-actual.png Diff: /home/runner/work/jupyter-collaboration/jupyter-collaboration/ui-tests/test-results/tests-collaborationpanel-collaboration-panel-should-contains-two-items/collaborationPanelCollapsed-diff.png 39 | } 40 | } > 41 | expect(await panel.screenshot()).toMatchSnapshot( | ^ 42 | 'collaborationPanelCollapsed.png' 43 | ); 44 | at /home/runner/work/jupyter-collaboration/jupyter-collaboration/ui-tests/tests/collaborationpanel.spec.ts:41:36
tests/collaborationpanel.spec.ts:112:7 › One client › clicking on collaborator should open its file list: ui-tests/tests/collaborationpanel.spec.ts#L146
2) tests/collaborationpanel.spec.ts:112:7 › One client › clicking on collaborator should open its file list Error: Screenshot comparison failed: 954 pixels (ratio 0.04 of all image pixels) are different. Expected: /home/runner/work/jupyter-collaboration/jupyter-collaboration/ui-tests/test-results/tests-collaborationpanel-One-client-clicking-on-collaborator-should-open-its-file-list/one-client-with-two-documents-expected.png Received: /home/runner/work/jupyter-collaboration/jupyter-collaboration/ui-tests/test-results/tests-collaborationpanel-One-client-clicking-on-collaborator-should-open-its-file-list/one-client-with-two-documents-actual.png Diff: /home/runner/work/jupyter-collaboration/jupyter-collaboration/ui-tests/test-results/tests-collaborationpanel-One-client-clicking-on-collaborator-should-open-its-file-list/one-client-with-two-documents-diff.png 144 | await expect(fileList.getByText(notebookName2)).toHaveCount(1); 145 | > 146 | expect(await collaborators.first().screenshot()).toMatchSnapshot('one-client-with-two-documents.png'); | ^ 147 | }); 148 | 149 | at /home/runner/work/jupyter-collaboration/jupyter-collaboration/ui-tests/tests/collaborationpanel.spec.ts:146:54
tests/collaborationpanel.spec.ts:228:7 › Three clients › Without document: ui-tests/tests/collaborationpanel.spec.ts#L237
3) tests/collaborationpanel.spec.ts:228:7 › Three clients › Without document ───────────────────── Error: Screenshot comparison failed: 953 pixels (ratio 0.01 of all image pixels) are different. Expected: /home/runner/work/jupyter-collaboration/jupyter-collaboration/ui-tests/test-results/tests-collaborationpanel-Three-clients-Without-document/three-client-without-document-expected.png Received: /home/runner/work/jupyter-collaboration/jupyter-collaboration/ui-tests/test-results/tests-collaborationpanel-Three-clients-Without-document/three-client-without-document-actual.png Diff: /home/runner/work/jupyter-collaboration/jupyter-collaboration/ui-tests/test-results/tests-collaborationpanel-Three-clients-Without-document/three-client-without-document-diff.png 235 | 236 | const tab = await page.sidebar.getContentPanel('left'); > 237 | expect(await tab?.screenshot()).toMatchSnapshot( | ^ 238 | 'three-client-without-document.png' 239 | ); 240 | }); at /home/runner/work/jupyter-collaboration/jupyter-collaboration/ui-tests/tests/collaborationpanel.spec.ts:237:37
tests/collaborationpanel.spec.ts:242:7 › Three clients › With document: ui-tests/tests/collaborationpanel.spec.ts#L267
4) tests/collaborationpanel.spec.ts:242:7 › Three clients › With document ──────────────────────── Error: Screenshot comparison failed: 971 pixels (ratio 0.01 of all image pixels) are different. Expected: /home/runner/work/jupyter-collaboration/jupyter-collaboration/ui-tests/test-results/tests-collaborationpanel-Three-clients-With-document/three-client-with-document-expected.png Received: /home/runner/work/jupyter-collaboration/jupyter-collaboration/ui-tests/test-results/tests-collaborationpanel-Three-clients-With-document/three-client-with-document-actual.png Diff: /home/runner/work/jupyter-collaboration/jupyter-collaboration/ui-tests/test-results/tests-collaborationpanel-Three-clients-With-document/three-client-with-document-diff.png 265 | 266 | const tab = await page.sidebar.getContentPanel('left'); > 267 | expect(await tab?.screenshot()).toMatchSnapshot( | ^ 268 | 'three-client-with-document.png' 269 | ); 270 | at /home/runner/work/jupyter-collaboration/jupyter-collaboration/ui-tests/tests/collaborationpanel.spec.ts:267:37
tests/notebook.spec.ts:104:7 › Initialization › Create a notebook: ui-tests/tests/notebook.spec.ts#L117
5) tests/notebook.spec.ts:104:7 › Initialization › Create a notebook ───────────────────────────── TypeError: Cannot read properties of undefined (reading 'slice') 115 | 116 | const nbPanelGuest = await guestPage.notebook.getNotebookInPanel(); > 117 | expect(await nbPanelGuest?.screenshot()).toMatchSnapshot( | ^ 118 | 'initialization-create-notebook-guest.png' 119 | ); 120 | at /home/runner/work/jupyter-collaboration/jupyter-collaboration/ui-tests/tests/notebook.spec.ts:117:46
tests/notebook.spec.ts:127:7 › Initialization › Open a notebook: ui-tests/tests/notebook.spec.ts#L137
6) tests/notebook.spec.ts:127:7 › Initialization › Open a notebook ─────────────────────────────── TypeError: Cannot read properties of undefined (reading 'slice') 135 | 136 | const nbPanel = await page.notebook.getNotebookInPanel(); > 137 | expect.soft(await nbPanel?.screenshot()).toMatchSnapshot( | ^ 138 | 'initialization-open-notebook-host.png' 139 | ); 140 | at /home/runner/work/jupyter-collaboration/jupyter-collaboration/ui-tests/tests/notebook.spec.ts:137:46
tests/notebook.spec.ts:127:7 › Initialization › Open a notebook: ui-tests/tests/notebook.spec.ts#L142
6) tests/notebook.spec.ts:127:7 › Initialization › Open a notebook ─────────────────────────────── TypeError: Cannot read properties of undefined (reading 'slice') 140 | 141 | const nbPanelGuest = await guestPage.notebook.getNotebookInPanel(); > 142 | expect(await nbPanelGuest?.screenshot()).toMatchSnapshot( | ^ 143 | 'initialization-open-notebook-guest.png' 144 | ); 145 | at /home/runner/work/jupyter-collaboration/jupyter-collaboration/ui-tests/tests/notebook.spec.ts:142:46
ui_tests
Process completed with exit code 1.
Run pre-commit hook
The following actions uses node12 which is deprecated and will be forced to run on node16: pre-commit/[email protected]. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Run pre-commit hook
The following actions use a deprecated Node.js version and will be forced to run on node20: pre-commit/[email protected]. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Run pre-commit hook: packages/collaboration/src/cursors.ts#L171
Forbidden non-null assertion
Run pre-commit hook: packages/collaboration/src/cursors.ts#L235
Forbidden non-null assertion
Run pre-commit hook: packages/collaboration/src/cursors.ts#L286
Forbidden non-null assertion
Run pre-commit hook: packages/collaboration/src/menu.ts#L65
Forbidden non-null assertion
Run pre-commit hook: packages/collaboration/src/menu.ts#L70
Forbidden non-null assertion
Run pre-commit hook: packages/collaboration/src/menu.ts#L76
Forbidden non-null assertion
Run pre-commit hook: packages/collaboration/src/menu.ts#L78
Forbidden non-null assertion
Run pre-commit hook: packages/collaboration/src/userinfopanel.tsx#L26
Forbidden non-null assertion
ui_tests
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3, actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Deprecation notice: v1, v2, and v3 of the artifact actions
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "jupyter-collaboration-playwright-report". 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/
🎭 Playwright Run Summary
6 failed tests/collaborationpanel.spec.ts:29:5 › collaboration panel should contains two items ────────── tests/collaborationpanel.spec.ts:112:7 › One client › clicking on collaborator should open its file list tests/collaborationpanel.spec.ts:228:7 › Three clients › Without document ────────────────────── tests/collaborationpanel.spec.ts:242:7 › Three clients › With document ───────────────────────── tests/notebook.spec.ts:104:7 › Initialization › Create a notebook ────────────────────────────── tests/notebook.spec.ts:127:7 › Initialization › Open a notebook ──────────────────────────────── 3 skipped 9 passed (1.7m)

Artifacts

Produced during runtime
Name Size
coverage-11719
22.1 KB
coverage-12514
24.9 KB
coverage-12609
21.2 KB
coverage-15690
21.9 KB
coverage-16216
21.9 KB
coverage-18223
21.7 KB
coverage-19425
24.9 KB
coverage-20641
22.6 KB
coverage-26394
25.1 KB
coverage-26830
25.1 KB
coverage-27333
21.7 KB
coverage-30020
24.2 KB
coverage-30162
21.2 KB
coverage-30464
21.7 KB
coverage-31191
24 KB
coverage-3552
21.5 KB
coverage-9063
22.6 KB
jupyter-collaboration-playwright-report
3.29 MB