Skip to content

refactor: perform dimensional analysis and numerical evaluation in same pass (WIP) #1586

refactor: perform dimensional analysis and numerical evaluation in same pass (WIP)

refactor: perform dimensional analysis and numerical evaluation in same pass (WIP) #1586

Triggered via pull request January 12, 2025 05:34
Status Failure
Total duration 24m 38s
Artifacts 2

playwright.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 1 warning, and 1 notice
[chromium] › test_basic.spec.mjs:783:1 › Test floating point exponent rounding: tests/test_basic.spec.mjs#L829
1) [chromium] › test_basic.spec.mjs:783:1 › Test floating point exponent rounding ──────────────── Error: Timed out 10000ms waiting for expect(locator).toBeVisible() Locator: locator('#cell-5').locator('text=Dimension Error: All input arguments to function need to have compatible units') Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 10000ms - waiting for locator('#cell-5').locator('text=Dimension Error: All input arguments to function need to have compatible units') 827 | expect(content).toBe('K'); 828 | > 829 | await expect(page.locator('#cell-5 >> text=Dimension Error: All input arguments to function need to have compatible units')).toBeVisible(); | ^ 830 | 831 | content = await page.textContent('#result-value-6'); 832 | expect(parseLatexFloat(content)).toBeCloseTo(6, precision); at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_basic.spec.mjs:829:128
[chromium] › test_basic.spec.mjs:783:1 › Test floating point exponent rounding: tests/test_basic.spec.mjs#L829
1) [chromium] › test_basic.spec.mjs:783:1 › Test floating point exponent rounding ──────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 10000ms waiting for expect(locator).toBeVisible() Locator: locator('#cell-5').locator('text=Dimension Error: All input arguments to function need to have compatible units') Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 10000ms - waiting for locator('#cell-5').locator('text=Dimension Error: All input arguments to function need to have compatible units') 827 | expect(content).toBe('K'); 828 | > 829 | await expect(page.locator('#cell-5 >> text=Dimension Error: All input arguments to function need to have compatible units')).toBeVisible(); | ^ 830 | 831 | content = await page.textContent('#result-value-6'); 832 | expect(parseLatexFloat(content)).toBeCloseTo(6, precision); at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_basic.spec.mjs:829:128
[chromium] › test_basic.spec.mjs:783:1 › Test floating point exponent rounding: tests/test_basic.spec.mjs#L829
1) [chromium] › test_basic.spec.mjs:783:1 › Test floating point exponent rounding ──────────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 10000ms waiting for expect(locator).toBeVisible() Locator: locator('#cell-5').locator('text=Dimension Error: All input arguments to function need to have compatible units') Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 10000ms - waiting for locator('#cell-5').locator('text=Dimension Error: All input arguments to function need to have compatible units') 827 | expect(content).toBe('K'); 828 | > 829 | await expect(page.locator('#cell-5 >> text=Dimension Error: All input arguments to function need to have compatible units')).toBeVisible(); | ^ 830 | 831 | content = await page.textContent('#result-value-6'); 832 | expect(parseLatexFloat(content)).toBeCloseTo(6, precision); at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_basic.spec.mjs:829:128
[firefox] › test_basic.spec.mjs:783:1 › Test floating point exponent rounding: tests/test_basic.spec.mjs#L829
2) [firefox] › test_basic.spec.mjs:783:1 › Test floating point exponent rounding ───────────────── Error: Timed out 10000ms waiting for expect(locator).toBeVisible() Locator: locator('#cell-5').locator('text=Dimension Error: All input arguments to function need to have compatible units') Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 10000ms - waiting for locator('#cell-5').locator('text=Dimension Error: All input arguments to function need to have compatible units') 827 | expect(content).toBe('K'); 828 | > 829 | await expect(page.locator('#cell-5 >> text=Dimension Error: All input arguments to function need to have compatible units')).toBeVisible(); | ^ 830 | 831 | content = await page.textContent('#result-value-6'); 832 | expect(parseLatexFloat(content)).toBeCloseTo(6, precision); at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_basic.spec.mjs:829:128
[firefox] › test_basic.spec.mjs:783:1 › Test floating point exponent rounding: tests/test_basic.spec.mjs#L829
2) [firefox] › test_basic.spec.mjs:783:1 › Test floating point exponent rounding ───────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 10000ms waiting for expect(locator).toBeVisible() Locator: locator('#cell-5').locator('text=Dimension Error: All input arguments to function need to have compatible units') Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 10000ms - waiting for locator('#cell-5').locator('text=Dimension Error: All input arguments to function need to have compatible units') 827 | expect(content).toBe('K'); 828 | > 829 | await expect(page.locator('#cell-5 >> text=Dimension Error: All input arguments to function need to have compatible units')).toBeVisible(); | ^ 830 | 831 | content = await page.textContent('#result-value-6'); 832 | expect(parseLatexFloat(content)).toBeCloseTo(6, precision); at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_basic.spec.mjs:829:128
[firefox] › test_basic.spec.mjs:783:1 › Test floating point exponent rounding: tests/test_basic.spec.mjs#L829
2) [firefox] › test_basic.spec.mjs:783:1 › Test floating point exponent rounding ───────────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 10000ms waiting for expect(locator).toBeVisible() Locator: locator('#cell-5').locator('text=Dimension Error: All input arguments to function need to have compatible units') Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 10000ms - waiting for locator('#cell-5').locator('text=Dimension Error: All input arguments to function need to have compatible units') 827 | expect(content).toBe('K'); 828 | > 829 | await expect(page.locator('#cell-5 >> text=Dimension Error: All input arguments to function need to have compatible units')).toBeVisible(); | ^ 830 | 831 | content = await page.textContent('#result-value-6'); 832 | expect(parseLatexFloat(content)).toBeCloseTo(6, precision); at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_basic.spec.mjs:829:128
[chromium] › test_plotting.spec.mjs:419:1 › test scatter plot x-y scalar vector mismatch: tests/test_plotting.spec.mjs#L429
3) [chromium] › test_plotting.spec.mjs:419:1 › test scatter plot x-y scalar vector mismatch ────── TimeoutError: locator.waitFor: Timeout 1000ms exceeded. Call log: - waiting for locator('#plot-expression-1-0').locator('text=Both the x and y values need to be a scalar value or a vector') 427 | await page.waitForSelector('.status-footer', { state: 'detached' }); 428 | > 429 | await page.locator('#plot-expression-1-0 >> text=Both the x and y values need to be a scalar value or a vector').waitFor({state: 'attached', timeout: 1000}); | ^ 430 | 431 | }); 432 | at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_plotting.spec.mjs:429:116
[firefox] › test_calc.spec.mjs:97:1 › Test substitution of integration variable: tests/test_calc.spec.mjs#L128
4) [firefox] › test_calc.spec.mjs:97:1 › Test substitution of integration variable ─────────────── Error: expect(received).toBeCloseTo(expected, precision) Expected: 50 Received: NaN Expected precision: 13 Expected difference: < 0.00000000000005 Received difference: NaN 126 | 127 | let content = await page.textContent('#result-value-6'); > 128 | expect(parseLatexFloat(content)).toBeCloseTo(50, precision); | ^ 129 | content = await page.textContent('#result-units-6'); 130 | expect(content).toBe(''); 131 | at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_calc.spec.mjs:128:36
[firefox] › test_file_save_open.spec.mjs:138:1 › Test opening file with results and syntax error: tests/test_file_save_open.spec.mjs#L147
5) [firefox] › test_file_save_open.spec.mjs:138:1 › Test opening file with results and syntax error Error: fileChooser.setFiles: Test ended. 145 | const path = "tests/test_sheet_parsing_error.epxyz"; 146 | page.on('filechooser', async (fileChooser) => { > 147 | await fileChooser.setFiles(path); | ^ 148 | }); 149 | await page.locator('#open-sheet').click(); 150 | at Page.<anonymous> (/home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_file_save_open.spec.mjs:147:5)
[firefox] › test_plotting.spec.mjs:17:1 › Test plotting: tests/test_plotting.spec.mjs#L92
6) [firefox] › test_plotting.spec.mjs:17:1 › Test plotting ─────────────────────────────────────── TimeoutError: page.waitForSelector: Timeout 120000ms exceeded. Call log: - waiting for locator('button:has-text("Results of expression does not evaluate to finite and real numeric values")') to be visible 90 | await page.click('#add-math-cell'); 91 | await page.setLatex(7, String.raw`s\left(v=\frac{pi}{2},0<u<20\right)=`); > 92 | await page.waitForSelector('button:has-text("Results of expression does not evaluate to finite and real numeric values")'); | ^ 93 | for (let i = 0; i < 18; i++) { 94 | await page.locator('#plot-expression-7-0 math-field.editable').press('Backspace'); 95 | } at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_plotting.spec.mjs:92:14
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: "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/
🎭 Playwright Run Summary
2 failed [chromium] › test_basic.spec.mjs:783:1 › Test floating point exponent rounding ───────────────── [firefox] › test_basic.spec.mjs:783:1 › Test floating point exponent rounding ────────────────── 4 flaky [chromium] › test_plotting.spec.mjs:419:1 › test scatter plot x-y scalar vector mismatch ─────── [firefox] › test_calc.spec.mjs:97:1 › Test substitution of integration variable ──────────────── [firefox] › test_file_save_open.spec.mjs:138:1 › Test opening file with results and syntax error [firefox] › test_plotting.spec.mjs:17:1 › Test plotting ──────────────────────────────────────── 9 skipped 771 passed (21.4m)

Artifacts

Produced during runtime
Name Size
screenshots
15.9 MB
test-results Expired
135 MB