Skip to content

Add ui-tests

Add ui-tests #46

Triggered via pull request June 13, 2024 07:59
Status Failure
Total duration 4m 10s
Artifacts 2

build.yml

on: pull_request
Matrix: build
visual-regression-tests
1m 56s
visual-regression-tests
Fit to window
Zoom out
Zoom in

Annotations

9 errors, 4 warnings, and 1 notice
tests/ipyopenlayers.test.ts:112:7 › ipyopenlayers Visual Regression › Dark theme: Check ipyopenlayers first renders: ui-tests/tests/ipyopenlayers.test.ts#L19
1) tests/ipyopenlayers.test.ts:112:7 › ipyopenlayers Visual Regression › Dark theme: Check ipyopenlayers first renders Error: page.evaluate: Test ended. 17 | 18 | const contextPrefix = theme == 'JupyterLab Light' ? 'light' : 'dark'; > 19 | page.theme.setTheme(theme); | ^ 20 | 21 | for (const notebook of notebooks) { 22 | let results = []; at ThemeHelper.setTheme (/home/runner/work/ipyopenlayers/ipyopenlayers/ui-tests/node_modules/@jupyterlab/galata/src/helpers/theme.ts:44:16) at testCellOutputs (/home/runner/work/ipyopenlayers/ipyopenlayers/ui-tests/tests/ipyopenlayers.test.ts:19:14) at /home/runner/work/ipyopenlayers/ipyopenlayers/ui-tests/tests/ipyopenlayers.test.ts:116:11
tests/ipyopenlayers.test.ts:112:7 › ipyopenlayers Visual Regression › Dark theme: Check ipyopenlayers first renders: ui-tests/tests/ipyopenlayers.test.ts#L19
1) tests/ipyopenlayers.test.ts:112:7 › ipyopenlayers Visual Regression › Dark theme: Check ipyopenlayers first renders Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: page.evaluate: Test ended. 17 | 18 | const contextPrefix = theme == 'JupyterLab Light' ? 'light' : 'dark'; > 19 | page.theme.setTheme(theme); | ^ 20 | 21 | for (const notebook of notebooks) { 22 | let results = []; at ThemeHelper.setTheme (/home/runner/work/ipyopenlayers/ipyopenlayers/ui-tests/node_modules/@jupyterlab/galata/src/helpers/theme.ts:44:16) at testCellOutputs (/home/runner/work/ipyopenlayers/ipyopenlayers/ui-tests/tests/ipyopenlayers.test.ts:19:14) at /home/runner/work/ipyopenlayers/ipyopenlayers/ui-tests/tests/ipyopenlayers.test.ts:116:11
tests/ipyopenlayers.test.ts:112:7 › ipyopenlayers Visual Regression › Dark theme: Check ipyopenlayers first renders: ui-tests/tests/ipyopenlayers.test.ts#L19
1) tests/ipyopenlayers.test.ts:112:7 › ipyopenlayers Visual Regression › Dark theme: Check ipyopenlayers first renders Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: page.evaluate: Test ended. 17 | 18 | const contextPrefix = theme == 'JupyterLab Light' ? 'light' : 'dark'; > 19 | page.theme.setTheme(theme); | ^ 20 | 21 | for (const notebook of notebooks) { 22 | let results = []; at ThemeHelper.setTheme (/home/runner/work/ipyopenlayers/ipyopenlayers/ui-tests/node_modules/@jupyterlab/galata/src/helpers/theme.ts:44:16) at testCellOutputs (/home/runner/work/ipyopenlayers/ipyopenlayers/ui-tests/tests/ipyopenlayers.test.ts:19:14) at /home/runner/work/ipyopenlayers/ipyopenlayers/ui-tests/tests/ipyopenlayers.test.ts:116:11
tests/ipyopenlayers.test.ts:112:7 › ipyopenlayers Visual Regression › Dark theme: Check ipyopenlayers first renders: ui-tests/tests/ipyopenlayers.test.ts#L19
1) tests/ipyopenlayers.test.ts:112:7 › ipyopenlayers Visual Regression › Dark theme: Check ipyopenlayers first renders Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: page.evaluate: Test ended. 17 | 18 | const contextPrefix = theme == 'JupyterLab Light' ? 'light' : 'dark'; > 19 | page.theme.setTheme(theme); | ^ 20 | 21 | for (const notebook of notebooks) { 22 | let results = []; at ThemeHelper.setTheme (/home/runner/work/ipyopenlayers/ipyopenlayers/ui-tests/node_modules/@jupyterlab/galata/src/helpers/theme.ts:44:16) at testCellOutputs (/home/runner/work/ipyopenlayers/ipyopenlayers/ui-tests/tests/ipyopenlayers.test.ts:19:14) at /home/runner/work/ipyopenlayers/ipyopenlayers/ui-tests/tests/ipyopenlayers.test.ts:116:11
tests/ipyopenlayers.test.ts:119:7 › ipyopenlayers Visual Regression › Light theme: Check ipyopenlayers update plot properties: ui-tests/tests/ipyopenlayers.test.ts#L85
2) tests/ipyopenlayers.test.ts:119:7 › ipyopenlayers Visual Regression › Light theme: Check ipyopenlayers update plot properties Error: A snapshot doesn't exist at /home/runner/work/ipyopenlayers/ipyopenlayers/ui-tests/tests/ipyopenlayers.test.ts-snapshots/light-map-update-ipynb-cell-0-linux.png, writing actual. 83 | 84 | for (let i = 0; i < cellCount; i++) { > 85 | expect(results[i]).toMatchSnapshot(getCaptureImageName(contextPrefix, notebook, i), {threshold: 0.3}); | ^ 86 | } 87 | 88 | await page.notebook.close(true); at testPlotUpdates (/home/runner/work/ipyopenlayers/ipyopenlayers/ui-tests/tests/ipyopenlayers.test.ts:85:26) at /home/runner/work/ipyopenlayers/ipyopenlayers/ui-tests/tests/ipyopenlayers.test.ts:123:5
tests/ipyopenlayers.test.ts:119:7 › ipyopenlayers Visual Regression › Light theme: Check ipyopenlayers update plot properties: ui-tests/tests/ipyopenlayers.test.ts#L85
2) tests/ipyopenlayers.test.ts:119:7 › ipyopenlayers Visual Regression › Light theme: Check ipyopenlayers update plot properties Error: A snapshot doesn't exist at /home/runner/work/ipyopenlayers/ipyopenlayers/ui-tests/tests/ipyopenlayers.test.ts-snapshots/light-map-update-ipynb-cell-1-linux.png, writing actual. 83 | 84 | for (let i = 0; i < cellCount; i++) { > 85 | expect(results[i]).toMatchSnapshot(getCaptureImageName(contextPrefix, notebook, i), {threshold: 0.3}); | ^ 86 | } 87 | 88 | await page.notebook.close(true); at testPlotUpdates (/home/runner/work/ipyopenlayers/ipyopenlayers/ui-tests/tests/ipyopenlayers.test.ts:85:26) at /home/runner/work/ipyopenlayers/ipyopenlayers/ui-tests/tests/ipyopenlayers.test.ts:123:5
tests/ipyopenlayers.test.ts:126:7 › ipyopenlayers Visual Regression › Dark theme: Check ipyopenlayers update plot properties: ui-tests/tests/ipyopenlayers.test.ts#L85
3) tests/ipyopenlayers.test.ts:126:7 › ipyopenlayers Visual Regression › Dark theme: Check ipyopenlayers update plot properties Error: A snapshot doesn't exist at /home/runner/work/ipyopenlayers/ipyopenlayers/ui-tests/tests/ipyopenlayers.test.ts-snapshots/dark-map-update-ipynb-cell-0-linux.png, writing actual. 83 | 84 | for (let i = 0; i < cellCount; i++) { > 85 | expect(results[i]).toMatchSnapshot(getCaptureImageName(contextPrefix, notebook, i), {threshold: 0.3}); | ^ 86 | } 87 | 88 | await page.notebook.close(true); at testPlotUpdates (/home/runner/work/ipyopenlayers/ipyopenlayers/ui-tests/tests/ipyopenlayers.test.ts:85:26) at /home/runner/work/ipyopenlayers/ipyopenlayers/ui-tests/tests/ipyopenlayers.test.ts:130:5
tests/ipyopenlayers.test.ts:126:7 › ipyopenlayers Visual Regression › Dark theme: Check ipyopenlayers update plot properties: ui-tests/tests/ipyopenlayers.test.ts#L85
3) tests/ipyopenlayers.test.ts:126:7 › ipyopenlayers Visual Regression › Dark theme: Check ipyopenlayers update plot properties Error: A snapshot doesn't exist at /home/runner/work/ipyopenlayers/ipyopenlayers/ui-tests/tests/ipyopenlayers.test.ts-snapshots/dark-map-update-ipynb-cell-1-linux.png, writing actual. 83 | 84 | for (let i = 0; i < cellCount; i++) { > 85 | expect(results[i]).toMatchSnapshot(getCaptureImageName(contextPrefix, notebook, i), {threshold: 0.3}); | ^ 86 | } 87 | 88 | await page.notebook.close(true); at testPlotUpdates (/home/runner/work/ipyopenlayers/ipyopenlayers/ui-tests/tests/ipyopenlayers.test.ts:85:26) at /home/runner/work/ipyopenlayers/ipyopenlayers/ui-tests/tests/ipyopenlayers.test.ts:130:5
visual-regression-tests
Process completed with exit code 1.
build (ubuntu-latest, 3.12)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
build (ubuntu-latest, 3.8)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
visual-regression-tests
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/download-artifact@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
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: "dist 46", "ipyopenlayers-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/
🎭 Playwright Run Summary
3 failed tests/ipyopenlayers.test.ts:112:7 › ipyopenlayers Visual Regression › Dark theme: Check ipyopenlayers first renders tests/ipyopenlayers.test.ts:119:7 › ipyopenlayers Visual Regression › Light theme: Check ipyopenlayers update plot properties tests/ipyopenlayers.test.ts:126:7 › ipyopenlayers Visual Regression › Dark theme: Check ipyopenlayers update plot properties 1 passed (45.3s)

Artifacts

Produced during runtime
Name Size
dist 46 Expired
6.4 MB
ipyopenlayers-playwright-tests Expired
5.1 MB