Fix critical post-refactoring bugs: Jest TypeScript errors, shape zoom scaling, and LaTeX rendering issues #97
test.yml
on: pull_request
Unit Tests
1m 28s
E2E Tests
2m 42s
Annotations
10 errors and 1 notice
|
[chromium] › e2e/point-tool-zoom.test.ts:124:1 › should maintain consistent step size with arrow navigation at different zoom levels:
e2e/point-tool-zoom.test.ts#L26
4) [chromium] › e2e/point-tool-zoom.test.ts:124:1 › should maintain consistent step size with arrow navigation at different zoom levels
TimeoutError: page.waitForSelector: Timeout 15000ms exceeded.
Call log:
- waiting for locator('path.formula-graph') to be visible
35 × locator resolved to hidden <path fill="none" stroke="#6392bf" stroke-width="2" class="formula-graph" d=" M 352.3199999999999,-962.1670400000012 L 357.28,-917.6593066666669 L 362.23999999999984,-873.971626666668 L 367.19999999999993,-831.1040000000007 L 372.1599999999998,-789.0564266666684 L 377.1199999999999,-747.8289066666673 L 382.08,-707.4214400000001 L 387.03999999999985,-667.8340266666676 L 392,-629.0666666666668 L 396.95999999999987,-591.119360000001 L 401.91999999999996,-553.992106666667 L 406.8799999999998,-517.684906…></path>
24 |
25 | // Wait for the graph to render
> 26 | await page.waitForSelector('path.formula-graph');
| ^
27 |
28 | // Switch to the select tool (deterministic; fail if not available)
29 | await page.getByTestId('select-tool').click();
at setupGraphAndSelectTool (/home/runner/work/function-playground/function-playground/e2e/point-tool-zoom.test.ts:26:14)
at /home/runner/work/function-playground/function-playground/e2e/point-tool-zoom.test.ts:125:3
|
|
[chromium] › e2e/point-tool-zoom.test.ts:71:1 › should convert screen coordinates to correct math coordinates at different zoom levels:
e2e/point-tool-zoom.test.ts#L26
3) [chromium] › e2e/point-tool-zoom.test.ts:71:1 › should convert screen coordinates to correct math coordinates at different zoom levels
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: page.waitForSelector: Timeout 15000ms exceeded.
Call log:
- waiting for locator('path.formula-graph') to be visible
34 × locator resolved to hidden <path fill="none" stroke="#b163ed" stroke-width="2" class="formula-graph" d=" M 352.3199999999999,-962.1670400000012 L 357.28,-917.6593066666669 L 362.23999999999984,-873.971626666668 L 367.19999999999993,-831.1040000000007 L 372.1599999999998,-789.0564266666684 L 377.1199999999999,-747.8289066666673 L 382.08,-707.4214400000001 L 387.03999999999985,-667.8340266666676 L 392,-629.0666666666668 L 396.95999999999987,-591.119360000001 L 401.91999999999996,-553.992106666667 L 406.8799999999998,-517.684906…></path>
24 |
25 | // Wait for the graph to render
> 26 | await page.waitForSelector('path.formula-graph');
| ^
27 |
28 | // Switch to the select tool (deterministic; fail if not available)
29 | await page.getByTestId('select-tool').click();
at setupGraphAndSelectTool (/home/runner/work/function-playground/function-playground/e2e/point-tool-zoom.test.ts:26:14)
at /home/runner/work/function-playground/function-playground/e2e/point-tool-zoom.test.ts:72:3
|
|
[chromium] › e2e/point-tool-zoom.test.ts:71:1 › should convert screen coordinates to correct math coordinates at different zoom levels:
e2e/point-tool-zoom.test.ts#L26
3) [chromium] › e2e/point-tool-zoom.test.ts:71:1 › should convert screen coordinates to correct math coordinates at different zoom levels
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: page.waitForSelector: Timeout 15000ms exceeded.
Call log:
- waiting for locator('path.formula-graph') to be visible
35 × locator resolved to hidden <path fill="none" stroke="#5a2aa1" stroke-width="2" class="formula-graph" d=" M 352.3199999999999,-962.1670400000012 L 357.28,-917.6593066666669 L 362.23999999999984,-873.971626666668 L 367.19999999999993,-831.1040000000007 L 372.1599999999998,-789.0564266666684 L 377.1199999999999,-747.8289066666673 L 382.08,-707.4214400000001 L 387.03999999999985,-667.8340266666676 L 392,-629.0666666666668 L 396.95999999999987,-591.119360000001 L 401.91999999999996,-553.992106666667 L 406.8799999999998,-517.684906…></path>
24 |
25 | // Wait for the graph to render
> 26 | await page.waitForSelector('path.formula-graph');
| ^
27 |
28 | // Switch to the select tool (deterministic; fail if not available)
29 | await page.getByTestId('select-tool').click();
at setupGraphAndSelectTool (/home/runner/work/function-playground/function-playground/e2e/point-tool-zoom.test.ts:26:14)
at /home/runner/work/function-playground/function-playground/e2e/point-tool-zoom.test.ts:72:3
|
|
[chromium] › e2e/point-tool-zoom.test.ts:71:1 › should convert screen coordinates to correct math coordinates at different zoom levels:
e2e/point-tool-zoom.test.ts#L26
3) [chromium] › e2e/point-tool-zoom.test.ts:71:1 › should convert screen coordinates to correct math coordinates at different zoom levels
TimeoutError: page.waitForSelector: Timeout 15000ms exceeded.
Call log:
- waiting for locator('path.formula-graph') to be visible
35 × locator resolved to hidden <path fill="none" stroke="#fb758f" stroke-width="2" class="formula-graph" d=" M 352.3199999999999,-962.1670400000012 L 357.28,-917.6593066666669 L 362.23999999999984,-873.971626666668 L 367.19999999999993,-831.1040000000007 L 372.1599999999998,-789.0564266666684 L 377.1199999999999,-747.8289066666673 L 382.08,-707.4214400000001 L 387.03999999999985,-667.8340266666676 L 392,-629.0666666666668 L 396.95999999999987,-591.119360000001 L 401.91999999999996,-553.992106666667 L 406.8799999999998,-517.684906…></path>
24 |
25 | // Wait for the graph to render
> 26 | await page.waitForSelector('path.formula-graph');
| ^
27 |
28 | // Switch to the select tool (deterministic; fail if not available)
29 | await page.getByTestId('select-tool').click();
at setupGraphAndSelectTool (/home/runner/work/function-playground/function-playground/e2e/point-tool-zoom.test.ts:26:14)
at /home/runner/work/function-playground/function-playground/e2e/point-tool-zoom.test.ts:72:3
|
|
[chromium] › e2e/formula-graph-drag.test.ts:5:3 › Formula Graph Drag Behavior › formula plotting and grid drag handling:
e2e/formula-graph-drag.test.ts#L21
2) [chromium] › e2e/formula-graph-drag.test.ts:5:3 › Formula Graph Drag Behavior › formula plotting and grid drag handling
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: page.waitForSelector: Timeout 15000ms exceeded.
Call log:
- waiting for locator('path.formula-graph') to be visible
35 × locator resolved to 3 elements. Proceeding with the first one: <path fill="none" stroke="#779c52" stroke-width="2" class="formula-graph" d=" M 352.3199999999999,-962.1670400000012 L 357.28,-917.6593066666669 L 362.23999999999984,-873.971626666668 L 367.19999999999993,-831.1040000000007 L 372.1599999999998,-789.0564266666684 L 377.1199999999999,-747.8289066666673 L 382.08,-707.4214400000001 L 387.03999999999985,-667.8340266666676 L 392,-629.0666666666668 L 396.95999999999987,-591.119360000001 L 401.91999999999996,-553.992106666667 L 406.8799999999998,-517.684906…></path>
19 |
20 | // Wait for the graph to render
> 21 | await page.waitForSelector('path.formula-graph');
| ^
22 |
23 | // Small delay to ensure the graph is fully rendered
24 | await page.waitForTimeout(100);
at /home/runner/work/function-playground/function-playground/e2e/formula-graph-drag.test.ts:21:16
|
|
[chromium] › e2e/formula-graph-drag.test.ts:5:3 › Formula Graph Drag Behavior › formula plotting and grid drag handling:
e2e/formula-graph-drag.test.ts#L21
2) [chromium] › e2e/formula-graph-drag.test.ts:5:3 › Formula Graph Drag Behavior › formula plotting and grid drag handling
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: page.waitForSelector: Timeout 15000ms exceeded.
Call log:
- waiting for locator('path.formula-graph') to be visible
35 × locator resolved to 3 elements. Proceeding with the first one: <path fill="none" stroke="#0b7128" stroke-width="2" class="formula-graph" d=" M 352.3199999999999,-962.1670400000012 L 357.28,-917.6593066666669 L 362.23999999999984,-873.971626666668 L 367.19999999999993,-831.1040000000007 L 372.1599999999998,-789.0564266666684 L 377.1199999999999,-747.8289066666673 L 382.08,-707.4214400000001 L 387.03999999999985,-667.8340266666676 L 392,-629.0666666666668 L 396.95999999999987,-591.119360000001 L 401.91999999999996,-553.992106666667 L 406.8799999999998,-517.684906…></path>
19 |
20 | // Wait for the graph to render
> 21 | await page.waitForSelector('path.formula-graph');
| ^
22 |
23 | // Small delay to ensure the graph is fully rendered
24 | await page.waitForTimeout(100);
at /home/runner/work/function-playground/function-playground/e2e/formula-graph-drag.test.ts:21:16
|
|
[chromium] › e2e/formula-graph-drag.test.ts:5:3 › Formula Graph Drag Behavior › formula plotting and grid drag handling:
e2e/formula-graph-drag.test.ts#L21
2) [chromium] › e2e/formula-graph-drag.test.ts:5:3 › Formula Graph Drag Behavior › formula plotting and grid drag handling
TimeoutError: page.waitForSelector: Timeout 15000ms exceeded.
Call log:
- waiting for locator('path.formula-graph') to be visible
34 × locator resolved to 3 elements. Proceeding with the first one: <path fill="none" stroke="#e863bf" stroke-width="2" class="formula-graph" d=" M 352.3199999999999,-962.1670400000012 L 357.28,-917.6593066666669 L 362.23999999999984,-873.971626666668 L 367.19999999999993,-831.1040000000007 L 372.1599999999998,-789.0564266666684 L 377.1199999999999,-747.8289066666673 L 382.08,-707.4214400000001 L 387.03999999999985,-667.8340266666676 L 392,-629.0666666666668 L 396.95999999999987,-591.119360000001 L 401.91999999999996,-553.992106666667 L 406.8799999999998,-517.684906…></path>
19 |
20 | // Wait for the graph to render
> 21 | await page.waitForSelector('path.formula-graph');
| ^
22 |
23 | // Small delay to ensure the graph is fully rendered
24 | await page.waitForTimeout(100);
at /home/runner/work/function-playground/function-playground/e2e/formula-graph-drag.test.ts:21:16
|
|
[chromium] › e2e/circle-drawing.test.ts:6:3 › Circle Drawing › should draw a circle that stays at the drawn position:
e2e/circle-drawing.test.ts#L45
1) [chromium] › e2e/circle-drawing.test.ts:6:3 › Circle Drawing › should draw a circle that stays at the drawn position
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
Locator: locator('.rounded-full')
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for locator('.rounded-full')
43 | // We'll look for div elements with rounded borders (circles)
44 | const circleElements = page.locator('.rounded-full');
> 45 | await expect(circleElements).toBeVisible();
| ^
46 |
47 | // Get the position of the drawn circle
48 | const circleElement = circleElements.first();
at /home/runner/work/function-playground/function-playground/e2e/circle-drawing.test.ts:45:34
|
|
[chromium] › e2e/circle-drawing.test.ts:6:3 › Circle Drawing › should draw a circle that stays at the drawn position:
e2e/circle-drawing.test.ts#L45
1) [chromium] › e2e/circle-drawing.test.ts:6:3 › Circle Drawing › should draw a circle that stays at the drawn position
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
Locator: locator('.rounded-full')
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for locator('.rounded-full')
43 | // We'll look for div elements with rounded borders (circles)
44 | const circleElements = page.locator('.rounded-full');
> 45 | await expect(circleElements).toBeVisible();
| ^
46 |
47 | // Get the position of the drawn circle
48 | const circleElement = circleElements.first();
at /home/runner/work/function-playground/function-playground/e2e/circle-drawing.test.ts:45:34
|
|
[chromium] › e2e/circle-drawing.test.ts:6:3 › Circle Drawing › should draw a circle that stays at the drawn position:
e2e/circle-drawing.test.ts#L45
1) [chromium] › e2e/circle-drawing.test.ts:6:3 › Circle Drawing › should draw a circle that stays at the drawn position
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
Locator: locator('.rounded-full')
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for locator('.rounded-full')
43 | // We'll look for div elements with rounded borders (circles)
44 | const circleElements = page.locator('.rounded-full');
> 45 | await expect(circleElements).toBeVisible();
| ^
46 |
47 | // Get the position of the drawn circle
48 | const circleElement = circleElements.first();
at /home/runner/work/function-playground/function-playground/e2e/circle-drawing.test.ts:45:34
|
|
🎭 Playwright Run Summary
7 failed
[chromium] › e2e/circle-drawing.test.ts:6:3 › Circle Drawing › should draw a circle that stays at the drawn position
[chromium] › e2e/formula-graph-drag.test.ts:5:3 › Formula Graph Drag Behavior › formula plotting and grid drag handling
[chromium] › e2e/point-tool-zoom.test.ts:71:1 › should convert screen coordinates to correct math coordinates at different zoom levels
[chromium] › e2e/point-tool-zoom.test.ts:124:1 › should maintain consistent step size with arrow navigation at different zoom levels
[chromium] › e2e/shape-zoom-creation.test.ts:6:3 › Shape Creation with Zoom › should create shapes of consistent size regardless of zoom level
[chromium] › e2e/triangle-angle-update.test.ts:177:3 › Triangle Angle Updates › should update triangle angles correctly
[chromium] › e2e/triangle-side-update.test.ts:7:3 › Triangle Side Updates › should update triangle side immediately when edited
37 passed (2.1m)
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
playwright-report
Expired
|
87.6 MB |
sha256:0a35db946df4b868e13f30547bf831dec5c802775ffaabbf6de045ae299878d7
|
|