feat: implement the factorial function #1440
Annotations
6 errors, 2 warnings, and 1 notice
[chromium] › test_basic.spec.mjs:1514:1 › Test cell drag to reorder:
tests/test_basic.spec.mjs#L1541
1) [chromium] › test_basic.spec.mjs:1514:1 › Test cell drag to reorder ───────────────────────────
Error: expect(received).toBeCloseTo(expected, precision)
Expected: 1
Received: 0
Expected precision: 13
Expected difference: < 0.00000000000005
Received difference: 1
1539 |
1540 | let content = await page.textContent('#result-value-0');
> 1541 | expect(parseLatexFloat(content)).toBeCloseTo(1, precision);
| ^
1542 |
1543 | content = await page.textContent('#result-value-1');
1544 | expect(parseLatexFloat(content)).toBeCloseTo(2, precision);
at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_basic.spec.mjs:1541:36
|
[chromium] › test_database.spec.mjs:176:1 › Test database consistency:
tests/test_database.spec.mjs#L186
2) [chromium] › test_database.spec.mjs:176:1 › Test database consistency ─────────────────────────
TimeoutError: locator.waitFor: Timeout 5000ms exceeded.
Call log:
- waiting for locator('h3').locator('text=Retrieving Sheet') to be detached
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
|
[chromium] › test_database.spec.mjs:176:1 › Test database consistency:
tests/test_database.spec.mjs#L186
2) [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.1pimergvby2">Retrieving Sheet</h3>
- locator resolved to visible <h3 class="bx--modal-header__heading" id="bx--modal-header__heading--modal-ccs-0.1pimergvby2">Retrieving Sheet</h3>
- locator resolved to visible <h3 class="bx--modal-header__heading" id="bx--modal-header__heading--modal-ccs-0.1pimergvby2">Retrieving Sheet</h3>
- locator resolved to visible <h3 class="bx--modal-header__heading" id="bx--modal-header__heading--modal-ccs-0.1pimergvby2">Retrieving Sheet</h3>
- locator resolved to visible <h3 class="bx--modal-header__heading" id="bx--modal-header__heading--modal-ccs-0.1pimergvby2">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
|
[firefox] › test_data_table.spec.mjs:860:1 › Test csv export and reload:
tests/test_data_table.spec.mjs#L890
3) [firefox] › test_data_table.spec.mjs:860:1 › Test csv export and reload ───────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "\\begin{bmatrix} 4.1\\left\\lbrack m\\right\\rbrack \\\\ 0\\left\\lbrack m\\right\\rbrack \\\\ 3\\left\\lbrack m\\right\\rbrack \\\\ 1\\left\\lbrack m\\right\\rbrack \\\\ -20.3\\left\\lbrack m\\right\\rbrack \\end{bmatrix}"
Received: "col_{1}"
888 |
889 | let content = await page.textContent(`#result-value-0`);
> 890 | expect(content).toBe(String.raw`\begin{bmatrix} 4.1\left\lbrack m\right\rbrack \\ 0\left\lbrack m\right\rbrack \\ 3\left\lbrack m\right\rbrack \\ 1\left\lbrack m\right\rbrack \\ -20.3\left\lbrack m\right\rbrack \end{bmatrix}`);
| ^
891 |
892 | content = await page.textContent(`#result-value-1`);
893 | expect(content).toBe(String.raw`\begin{bmatrix} 9\left\lbrack s\right\rbrack \\ 8\left\lbrack s\right\rbrack \\ 7\left\lbrack s\right\rbrack \\ 0\left\lbrack s\right\rbrack \\ -1\left\lbrack s\right\rbrack \\ -2\left\lbrack s\right\rbrack \\ -3\left\lbrack s\right\rbrack \\ -3.4\left\lbrack s\right\rbrack \end{bmatrix}`);
at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_data_table.spec.mjs:890:19
|
[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
4) [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
5) [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
|
test
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3, actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
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
5 flaky
[chromium] › test_basic.spec.mjs:1514:1 › Test cell drag to reorder ────────────────────────────
[chromium] › test_database.spec.mjs:176:1 › Test database consistency ──────────────────────────
[firefox] › test_data_table.spec.mjs:860:1 › Test csv export and reload ────────────────────────
[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
730 passed (20.3m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
screenshots
Expired
|
15.9 MB |
|
test-results
Expired
|
118 MB |
|