refactor: perform dimensional analysis and numerical evaluation in same pass #1559
Annotations
10 errors, 1 warning, and 1 notice
Run Playwright tests:
tests/test_database.spec.mjs#L194
1) [chromium] › test_database.spec.mjs:176:1 › Test database consistency ─────────────────────────
Error: expect(received).toEqual(expected) // deep equality
Expected: 0
Received: 5139
192 | await page.screenshot({ path: `${screenshotDir}/${browserName}_screenshot_reference_check.png`, fullPage: true });
193 |
> 194 | expect(compareImages(`${browserName}_reference.png`, `${browserName}_screenshot_reference_check.png`)).toEqual(0);
| ^
195 | });
at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_database.spec.mjs:194:106
|
Run Playwright tests:
tests/test_database.spec.mjs#L186
1) [chromium] › test_database.spec.mjs:176:1 › Test database consistency ─────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.waitFor: Timeout 5000ms exceeded.
Call log:
- waiting for locator('h3').locator('text=Retrieving Sheet') to be detached
- locator resolved to visible <h3 class="bx--modal-header__heading" id="bx--modal-header__heading--modal-ccs-0.dutvrwiqch">Retrieving Sheet</h3>
- locator resolved to visible <h3 class="bx--modal-header__heading" id="bx--modal-header__heading--modal-ccs-0.dutvrwiqch">Retrieving Sheet</h3>
- locator resolved to visible <h3 class="bx--modal-header__heading" id="bx--modal-header__heading--modal-ccs-0.dutvrwiqch">Retrieving Sheet</h3>
- locator resolved to visible <h3 class="bx--modal-header__heading" id="bx--modal-header__heading--modal-ccs-0.dutvrwiqch">Retrieving Sheet</h3>
- locator resolved to visible <h3 class="bx--modal-header__heading" id="bx--modal-header__heading--modal-ccs-0.dutvrwiqch">Retrieving Sheet</h3>
184 | await page.setViewportSize({ width: width, height: height });
185 |
> 186 | await page.locator('h3 >> text=Retrieving Sheet').waitFor({state: 'detached', timeout: 5000});
| ^
187 | await page.locator('text=Accept').click();
188 | await page.waitForSelector('.status-footer', { state: 'detached', timeout: pyodideLoadTimeout });
189 | await page.keyboard.press('Escape'); // unselect all cells
at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_database.spec.mjs:186:53
|
Run Playwright tests:
tests/test_database.spec.mjs#L194
1) [chromium] › test_database.spec.mjs:176:1 › Test database consistency ─────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
Expected: 0
Received: 5139
192 | await page.screenshot({ path: `${screenshotDir}/${browserName}_screenshot_reference_check.png`, fullPage: true });
193 |
> 194 | expect(compareImages(`${browserName}_reference.png`, `${browserName}_screenshot_reference_check.png`)).toEqual(0);
| ^
195 | });
at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_database.spec.mjs:194:106
|
Run Playwright tests:
tests/test_database.spec.mjs#L194
2) [firefox] › test_database.spec.mjs:176:1 › Test database consistency ──────────────────────────
Error: expect(received).toEqual(expected) // deep equality
Expected: 0
Received: 5830
192 | await page.screenshot({ path: `${screenshotDir}/${browserName}_screenshot_reference_check.png`, fullPage: true });
193 |
> 194 | expect(compareImages(`${browserName}_reference.png`, `${browserName}_screenshot_reference_check.png`)).toEqual(0);
| ^
195 | });
at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_database.spec.mjs:194:106
|
Run Playwright tests:
tests/test_database.spec.mjs#L194
2) [firefox] › test_database.spec.mjs:176:1 › Test database consistency ──────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
Expected: 0
Received: 5830
192 | await page.screenshot({ path: `${screenshotDir}/${browserName}_screenshot_reference_check.png`, fullPage: true });
193 |
> 194 | expect(compareImages(`${browserName}_reference.png`, `${browserName}_screenshot_reference_check.png`)).toEqual(0);
| ^
195 | });
at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_database.spec.mjs:194:106
|
Run Playwright tests:
tests/test_database.spec.mjs#L194
2) [firefox] › test_database.spec.mjs:176:1 › Test database consistency ──────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
Expected: 0
Received: 5830
192 | await page.screenshot({ path: `${screenshotDir}/${browserName}_screenshot_reference_check.png`, fullPage: true });
193 |
> 194 | expect(compareImages(`${browserName}_reference.png`, `${browserName}_screenshot_reference_check.png`)).toEqual(0);
| ^
195 | });
at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_database.spec.mjs:194:106
|
Run Playwright tests:
tests/test_plotting.spec.mjs#L381
3) [firefox] › test_plotting.spec.mjs:354:1 › Test copy plot data ────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "xy1xy2[inch][m][inch][]-10-0.2541010100.2542020"
Received: "x_function_id_wrapper(991,y1)x_function_id_wrapper(1036,y2)[inch][m][inch][]-10-0.2541010100.2542020"
379 | clipboardContents = clipboardContents.replace(/\s+/g, ''); // remove whitespace
380 |
> 381 | expect(clipboardContents).toBe('xy1xy2[inch][m][inch][]-10-0.2541010100.2542020');
| ^
382 |
383 | });
384 |
at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_plotting.spec.mjs:381:29
|
Run Playwright tests:
tests/test_plotting.spec.mjs#L381
3) [firefox] › test_plotting.spec.mjs:354:1 › Test copy plot data ────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "xy1xy2[inch][m][inch][]-10-0.2541010100.2542020"
Received: "x_function_id_wrapper(11,y1)x_function_id_wrapper(16,y2)[inch][m][inch][]-10-0.2541010100.2542020"
379 | clipboardContents = clipboardContents.replace(/\s+/g, ''); // remove whitespace
380 |
> 381 | expect(clipboardContents).toBe('xy1xy2[inch][m][inch][]-10-0.2541010100.2542020');
| ^
382 |
383 | });
384 |
at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_plotting.spec.mjs:381:29
|
Run Playwright tests:
tests/test_plotting.spec.mjs#L381
3) [firefox] › test_plotting.spec.mjs:354:1 › Test copy plot data ────────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "xy1xy2[inch][m][inch][]-10-0.2541010100.2542020"
Received: "x_function_id_wrapper(11,y1)x_function_id_wrapper(16,y2)[inch][m][inch][]-10-0.2541010100.2542020"
379 | clipboardContents = clipboardContents.replace(/\s+/g, ''); // remove whitespace
380 |
> 381 | expect(clipboardContents).toBe('xy1xy2[inch][m][inch][]-10-0.2541010100.2542020');
| ^
382 |
383 | });
384 |
at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_plotting.spec.mjs:381:29
|
Run Playwright tests:
tests/test_plotting.spec.mjs#L792
4) [firefox] › test_plotting.spec.mjs:764:1 › Test visual comparison of function plot with identical parametric plot
Error: expect(received).toEqual(expected) // deep equality
Expected: 0
Received: 5948
790 | fs.copyFileSync(await download.path(), path.join(screenshotDir, linearFunctionImageFile));
791 |
> 792 | expect(compareImages(linearParametricImageFile, linearFunctionImageFile)).toEqual(0);
| ^
793 | });
794 |
795 | test('test parametric plot with expressions as inputs', async ({ browserName }) => {
at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_plotting.spec.mjs:792:77
|
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "screenshots", "test-results".
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/
|
Run Playwright tests
5 failed
[chromium] › test_database.spec.mjs:176:1 › Test database consistency ──────────────────────────
[firefox] › test_database.spec.mjs:176:1 › Test database consistency ───────────────────────────
[firefox] › test_plotting.spec.mjs:354:1 › Test copy plot data ─────────────────────────────────
[firefox] › test_plotting.spec.mjs:764:1 › Test visual comparison of function plot with identical parametric plot
[firefox] › test_symbolic_expression_error_handling.spec.mjs:5:1 › Test handling of symbolic expression error
4 flaky
[chromium] › test_table_cell.spec.mjs:50:1 › Test parameter name error messages ────────────────
[firefox] › test_file_save_open.spec.mjs:138:1 › Test opening file with results and syntax error
[firefox] › test_matrix_multiplication.spec.mjs:499:1 › Matrix multiplication with cdot symbol passed as argument to function
[firefox] › test_plotting.spec.mjs:639:1 › Test visual comparison of function plot with identical scatter line plot
9 skipped
760 passed (25.8m)
|
Loading