[WIP]: Configure UI tests for Lite Deployment #2473
Annotations
9 errors and 1 notice
Execute integration tests:
ui-tests/tests/lite.spec.ts#L55
1) tests/lite.spec.ts:24:9 › UI Test › Should be able to render test.jcad without error ──────────
Error: expect(Buffer).toMatchSnapshot(expected)
13444 pixels (ratio 0.02 of all image pixels) are different.
Expected: /home/runner/work/JupyterCAD/JupyterCAD/ui-tests/tests/lite.spec.ts-snapshots/Render-test-jcad-linux.png
Received: /home/runner/work/JupyterCAD/JupyterCAD/ui-tests/test-results/tests-lite-UI-Test-Should--e037b-der-test-jcad-without-error/Render-test-jcad-actual.png
Diff: /home/runner/work/JupyterCAD/JupyterCAD/ui-tests/test-results/tests-lite-UI-Test-Should--e037b-der-test-jcad-without-error/Render-test-jcad-diff.png
53 | expect(errors).toBe(0);
54 | if (main) {
> 55 | expect(await main.screenshot()).toMatchSnapshot({
| ^
56 | name: `Render-${file}.png`,
57 | maxDiffPixelRatio: 0.01
58 | });
at /home/runner/work/JupyterCAD/JupyterCAD/ui-tests/tests/lite.spec.ts:55:41
|
Execute integration tests:
ui-tests/tests/lite.spec.ts#L55
1) tests/lite.spec.ts:24:9 › UI Test › Should be able to render test.jcad without error ──────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(Buffer).toMatchSnapshot(expected)
11834 pixels (ratio 0.02 of all image pixels) are different.
Expected: /home/runner/work/JupyterCAD/JupyterCAD/ui-tests/tests/lite.spec.ts-snapshots/Render-test-jcad-linux.png
Received: /home/runner/work/JupyterCAD/JupyterCAD/ui-tests/test-results/tests-lite-UI-Test-Should--e037b-der-test-jcad-without-error-retry1/Render-test-jcad-actual.png
Diff: /home/runner/work/JupyterCAD/JupyterCAD/ui-tests/test-results/tests-lite-UI-Test-Should--e037b-der-test-jcad-without-error-retry1/Render-test-jcad-diff.png
53 | expect(errors).toBe(0);
54 | if (main) {
> 55 | expect(await main.screenshot()).toMatchSnapshot({
| ^
56 | name: `Render-${file}.png`,
57 | maxDiffPixelRatio: 0.01
58 | });
at /home/runner/work/JupyterCAD/JupyterCAD/ui-tests/tests/lite.spec.ts:55:41
|
Execute integration tests:
ui-tests/tests/lite.spec.ts#L55
2) tests/lite.spec.ts:24:9 › UI Test › Should be able to render 3M_CONNECTOR.STEP without error ──
Error: expect(Buffer).toMatchSnapshot(expected)
286158 pixels (ratio 0.42 of all image pixels) are different.
Expected: /home/runner/work/JupyterCAD/JupyterCAD/ui-tests/tests/lite.spec.ts-snapshots/Render-3M-CONNECTOR-STEP-linux.png
Received: /home/runner/work/JupyterCAD/JupyterCAD/ui-tests/test-results/tests-lite-UI-Test-Should--995b0-ONNECTOR-STEP-without-error/Render-3M-CONNECTOR-STEP-actual.png
Diff: /home/runner/work/JupyterCAD/JupyterCAD/ui-tests/test-results/tests-lite-UI-Test-Should--995b0-ONNECTOR-STEP-without-error/Render-3M-CONNECTOR-STEP-diff.png
53 | expect(errors).toBe(0);
54 | if (main) {
> 55 | expect(await main.screenshot()).toMatchSnapshot({
| ^
56 | name: `Render-${file}.png`,
57 | maxDiffPixelRatio: 0.01
58 | });
at /home/runner/work/JupyterCAD/JupyterCAD/ui-tests/tests/lite.spec.ts:55:41
|
Execute integration tests:
ui-tests/tests/lite.spec.ts#L55
2) tests/lite.spec.ts:24:9 › UI Test › Should be able to render 3M_CONNECTOR.STEP without error ──
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(Buffer).toMatchSnapshot(expected)
23141 pixels (ratio 0.04 of all image pixels) are different.
Expected: /home/runner/work/JupyterCAD/JupyterCAD/ui-tests/tests/lite.spec.ts-snapshots/Render-3M-CONNECTOR-STEP-linux.png
Received: /home/runner/work/JupyterCAD/JupyterCAD/ui-tests/test-results/tests-lite-UI-Test-Should--995b0-ONNECTOR-STEP-without-error-retry1/Render-3M-CONNECTOR-STEP-actual.png
Diff: /home/runner/work/JupyterCAD/JupyterCAD/ui-tests/test-results/tests-lite-UI-Test-Should--995b0-ONNECTOR-STEP-without-error-retry1/Render-3M-CONNECTOR-STEP-diff.png
53 | expect(errors).toBe(0);
54 | if (main) {
> 55 | expect(await main.screenshot()).toMatchSnapshot({
| ^
56 | name: `Render-${file}.png`,
57 | maxDiffPixelRatio: 0.01
58 | });
at /home/runner/work/JupyterCAD/JupyterCAD/ui-tests/tests/lite.spec.ts:55:41
|
Execute integration tests:
ui-tests/tests/lite.spec.ts#L1
3) tests/lite.spec.ts:63:7 › UI Test › Should create and execute a new .ipynb file ───────────────
Test timeout of 60000ms exceeded.
|
Execute integration tests:
ui-tests/tests/lite.spec.ts#L81
3) tests/lite.spec.ts:63:7 › UI Test › Should create and execute a new .ipynb file ───────────────
Error: locator.waitFor: Test ended.
Call log:
- waiting for locator('.jp-InputArea-prompt').locator('text="[1]:"').first() to be visible
79 | await page.keyboard.press('Control+Enter');
80 |
> 81 | await page.locator('.jp-InputArea-prompt >> text="[1]:"').first().waitFor();
| ^
82 |
83 | const outputErrors = await page.$$('.jp-OutputArea-error');
84 | expect(outputErrors.length).toBe(0);
at /home/runner/work/JupyterCAD/JupyterCAD/ui-tests/tests/lite.spec.ts:81:71
|
Execute integration tests:
ui-tests/tests/lite.spec.ts#L1
3) tests/lite.spec.ts:63:7 › UI Test › Should create and execute a new .ipynb file ───────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 60000ms exceeded.
|
Execute integration tests:
ui-tests/tests/lite.spec.ts#L81
3) tests/lite.spec.ts:63:7 › UI Test › Should create and execute a new .ipynb file ───────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.waitFor: Test ended.
Call log:
- waiting for locator('.jp-InputArea-prompt').locator('text="[1]:"').first() to be visible
79 | await page.keyboard.press('Control+Enter');
80 |
> 81 | await page.locator('.jp-InputArea-prompt >> text="[1]:"').first().waitFor();
| ^
82 |
83 | const outputErrors = await page.$$('.jp-OutputArea-error');
84 | expect(outputErrors.length).toBe(0);
at /home/runner/work/JupyterCAD/JupyterCAD/ui-tests/tests/lite.spec.ts:81:71
|
Execute integration tests
Process completed with exit code 1.
|
Execute integration tests
3 failed
tests/lite.spec.ts:24:9 › UI Test › Should be able to render test.jcad without error ───────────
tests/lite.spec.ts:24:9 › UI Test › Should be able to render 3M_CONNECTOR.STEP without error ───
tests/lite.spec.ts:63:7 › UI Test › Should create and execute a new .ipynb file ────────────────
1 passed (3.2m)
|
Loading