Skip to content

Add UI tests

Add UI tests #100

Triggered via pull request December 19, 2024 15:29
Status Failure
Total duration 5m 53s
Artifacts 3

build.yml

on: pull_request
Matrix: Integration tests
test_isolated
30s
test_isolated
Build JupyterLite
0s
Build JupyterLite
Fit to window
Zoom out
Zoom in

Annotations

7 errors, 5 warnings, and 2 notices
tests/ui.spec.ts:9:9 › UI Test › Extension activation test › should emit an activation console message: ui-tests/tests/ui.spec.ts#L25
1) tests/ui.spec.ts:9:9 › UI Test › Extension activation test › should emit an activation console message Error: A snapshot doesn't exist at /home/runner/work/jupyter-suggestions/jupyter-suggestions/ui-tests/tests/ui.spec.ts-snapshots/local-main-page-linux.png, writing actual. 23 | ); 24 | await page.getByTitle('Jupyter Suggestions'); > 25 | expect(await page.screenshot()).toMatchSnapshot({ | ^ 26 | name: `${BACKEND}-main-page.png` 27 | }); 28 | }); at /home/runner/work/jupyter-suggestions/jupyter-suggestions/ui-tests/tests/ui.spec.ts:25:39
tests/ui.spec.ts:31:9 › UI Test › Panel activation test › should add the suggestion panel to the right: ui-tests/tests/ui.spec.ts#L40
2) tests/ui.spec.ts:31:9 › UI Test › Panel activation test › should add the suggestion panel to the right Error: A snapshot doesn't exist at /home/runner/work/jupyter-suggestions/jupyter-suggestions/ui-tests/tests/ui.spec.ts-snapshots/local-side-panel-linux.png, writing actual. 38 | await page.getByTitle('Jupyter Suggestions').click(); 39 | await page.getByTitle('All Suggestions'); > 40 | expect(await page.screenshot()).toMatchSnapshot({ | ^ 41 | name: `${BACKEND}-side-panel.png` 42 | }); 43 | }); at /home/runner/work/jupyter-suggestions/jupyter-suggestions/ui-tests/tests/ui.spec.ts:40:39
tests/ui.spec.ts:56:7 › Notebook Test › Should add suggestion widget: ui-tests/tests/ui.spec.ts#L74
3) tests/ui.spec.ts:56:7 › Notebook Test › Should add suggestion widget ────────────────────────── Error: A snapshot doesn't exist at /home/runner/work/jupyter-suggestions/jupyter-suggestions/ui-tests/tests/ui.spec.ts-snapshots/local-add-suggestion-linux.png, writing actual. 72 | await page.getByText('Suggest delete').click(); 73 | await page.waitForTimeout(500); > 74 | expect(await page.screenshot()).toMatchSnapshot({ | ^ 75 | name: `${BACKEND}-add-suggestion.png` 76 | }); 77 | await page at /home/runner/work/jupyter-suggestions/jupyter-suggestions/ui-tests/tests/ui.spec.ts:74:37
tests/ui.spec.ts:56:7 › Notebook Test › Should add suggestion widget: ui-tests/tests/ui.spec.ts#L84
3) tests/ui.spec.ts:56:7 › Notebook Test › Should add suggestion widget ────────────────────────── Error: A snapshot doesn't exist at /home/runner/work/jupyter-suggestions/jupyter-suggestions/ui-tests/tests/ui.spec.ts-snapshots/local-change-cell-content-linux.png, writing actual. 82 | expect( 83 | await page.getByLabel('All Suggestions (2)', { exact: true }).screenshot() > 84 | ).toMatchSnapshot({ | ^ 85 | name: `${BACKEND}-change-cell-content.png` 86 | }); 87 | await page.getByLabel('Accept suggestion').nth(2).click(); at /home/runner/work/jupyter-suggestions/jupyter-suggestions/ui-tests/tests/ui.spec.ts:84:7
tests/ui.spec.ts:56:7 › Notebook Test › Should add suggestion widget: ui-tests/tests/ui.spec.ts#L89
3) tests/ui.spec.ts:56:7 › Notebook Test › Should add suggestion widget ────────────────────────── Error: A snapshot doesn't exist at /home/runner/work/jupyter-suggestions/jupyter-suggestions/ui-tests/tests/ui.spec.ts-snapshots/local-accept-change-suggestion-linux.png, writing actual. 87 | await page.getByLabel('Accept suggestion').nth(2).click(); 88 | await page.waitForTimeout(500); > 89 | expect(await page.screenshot()).toMatchSnapshot({ | ^ 90 | name: `${BACKEND}-accept-change-suggestion.png` 91 | }); 92 | await page.getByLabel('Accept suggestion').nth(1).click(); at /home/runner/work/jupyter-suggestions/jupyter-suggestions/ui-tests/tests/ui.spec.ts:89:37
tests/ui.spec.ts:56:7 › Notebook Test › Should add suggestion widget: ui-tests/tests/ui.spec.ts#L94
3) tests/ui.spec.ts:56:7 › Notebook Test › Should add suggestion widget ────────────────────────── Error: A snapshot doesn't exist at /home/runner/work/jupyter-suggestions/jupyter-suggestions/ui-tests/tests/ui.spec.ts-snapshots/local-accept-delete-suggestion-linux.png, writing actual. 92 | await page.getByLabel('Accept suggestion').nth(1).click(); 93 | await page.waitForTimeout(500); > 94 | expect(await page.screenshot()).toMatchSnapshot({ | ^ 95 | name: `${BACKEND}-accept-delete-suggestion.png` 96 | }); 97 | }); at /home/runner/work/jupyter-suggestions/jupyter-suggestions/ui-tests/tests/ui.spec.ts:94:37
Integration tests (local)
Process completed with exit code 1.
Check Links
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test_isolated
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Integration tests (rtc)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Integration tests (local)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
🎭 Playwright Run Summary
3 passed (22.7s)
🎭 Playwright Run Summary
3 failed tests/ui.spec.ts:9:9 › UI Test › Extension activation test › should emit an activation console message tests/ui.spec.ts:31:9 › UI Test › Panel activation test › should add the suggestion panel to the right tests/ui.spec.ts:56:7 › Notebook Test › Should add suggestion widget ───────────────────────────

Artifacts

Produced during runtime
Name Size
extension-artifacts
1.09 MB
jupyter-suggestions-playwright-local-tests
1.17 MB
jupyter-suggestions-playwright-rtc-tests
202 KB