Refactor result form tests and add missing cases (#255) #1601
Annotations
7 errors, 3 warnings, and 2 notices
Run E2E tests:
packages/dito/tests/e2e/examplePages.spec.ts#L25
1) [chromium] › e2e/examplePages.spec.ts:18:5 › Digitaltauglichkeit main functionality › displays detailed information for principle: digitale-kommunikation-sicherstellen
Error: Timed out 5000ms waiting for expect(locator).toContainText(expected)
Locator: getByRole('main')
Expected string: "Prinzip 1 in Regelungstexten"
Received: <element(s) not found>
Call log:
- expect.toContainText with timeout 5000ms
- waiting for getByRole('main')
23 |
24 | const mainContent = page.getByRole("main");
> 25 | await expect(mainContent).toContainText(
| ^
26 | `Prinzip ${principles.indexOf(principle) + 1} in Regelungstexten`,
27 | );
28 | });
at /home/runner/work/digitalcheck-apps/digitalcheck-apps/packages/dito/tests/e2e/examplePages.spec.ts:25:33
|
Run E2E tests:
packages/dito/tests/e2e/examplePages.spec.ts#L1
2) [chromium] › e2e/examplePages.spec.ts:30:5 › Digitaltauglichkeit main functionality › renders navigation links for principle: digitale-kommunikation-sicherstellen
Test timeout of 30000ms exceeded.
|
Run E2E tests:
packages/dito/tests/e2e/examplePages.spec.ts#L42
2) [chromium] › e2e/examplePages.spec.ts:30:5 › Digitaltauglichkeit main functionality › renders navigation links for principle: digitale-kommunikation-sicherstellen
Error: locator.click: Test timeout of 30000ms exceeded.
Call log:
- waiting for getByRole('link', { name: 'Prinzip 2' })
40 | });
41 |
> 42 | await nextPrincipleLink.click();
| ^
43 | await expect(page).toHaveURL(
44 | `${ROUTE_PRINCIPLES.url}/${principles[nextPrincipleIndex]}`,
45 | );
at /home/runner/work/digitalcheck-apps/digitalcheck-apps/packages/dito/tests/e2e/examplePages.spec.ts:42:33
|
Run E2E tests:
packages/dito/tests/e2e/resultForm.spec.ts#L258
3) [chromium] › e2e/resultForm.spec.ts:276:3 › test positive result for digital and unsure for interoperability › email recipients include digitalcheck team if interoperability is unsure
Test timeout of 30000ms exceeded while running "beforeEach" hook.
256 |
257 | test.describe("test positive result for digital and unsure for interoperability", () => {
> 258 | test.beforeEach(
| ^
259 | "answer all digital questions with no and all interoperability questions with yes and go to result page",
260 | async ({ page }) => {
261 | await page.goto(questions[0].url);
at /home/runner/work/digitalcheck-apps/digitalcheck-apps/packages/dito/tests/e2e/resultForm.spec.ts:258:8
|
Run E2E tests:
packages/dito/tests/e2e/resultForm.spec.ts#L263
3) [chromium] › e2e/resultForm.spec.ts:276:3 › test positive result for digital and unsure for interoperability › email recipients include digitalcheck team if interoperability is unsure
Error: page.waitForURL: Test timeout of 30000ms exceeded.
=========================== logs ===========================
waiting for navigation to "/vorpruefung/verpflichtungen-fuer-beteiligte" until "load"
============================================================
261 | await page.goto(questions[0].url);
262 | for (let i = 0; i < questions.length; i++) {
> 263 | await page.waitForURL(questions[i].url);
| ^
264 | await page
265 | .getByLabel(questions[i].interoperability ? "Ich bin unsicher" : "Ja")
266 | .click();
at /home/runner/work/digitalcheck-apps/digitalcheck-apps/packages/dito/tests/e2e/resultForm.spec.ts:263:20
|
Run E2E tests:
packages/dito/tests/e2e/resultForm.spec.ts#L61
4) [webkit] › e2e/resultForm.spec.ts:86:3 › test positive result for digital and interoperability › error is shown if title is empty
Test timeout of 30000ms exceeded while running "beforeEach" hook.
59 |
60 | test.describe("test positive result for digital and interoperability", () => {
> 61 | test.beforeEach(
| ^
62 | "answer all pre-check questions with yes and go to result page",
63 | async ({ page }) => {
64 | await page.goto(questions[0].url);
at /home/runner/work/digitalcheck-apps/digitalcheck-apps/packages/dito/tests/e2e/resultForm.spec.ts:61:8
|
Run E2E tests:
packages/dito/tests/e2e/resultForm.spec.ts#L66
4) [webkit] › e2e/resultForm.spec.ts:86:3 › test positive result for digital and interoperability › error is shown if title is empty
Error: page.waitForURL: Test timeout of 30000ms exceeded.
=========================== logs ===========================
waiting for navigation to "/vorpruefung/verpflichtungen-fuer-beteiligte" until "load"
============================================================
64 | await page.goto(questions[0].url);
65 | for (let i = 0; i < questions.length; i++) {
> 66 | await page.waitForURL(questions[i].url);
| ^
67 | await page.getByLabel("Ja").click();
68 | await page.getByRole("button", { name: "Übernehmen" }).click();
69 | }
at /home/runner/work/digitalcheck-apps/digitalcheck-apps/packages/dito/tests/e2e/resultForm.spec.ts:66:20
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Fix lint:
packages/dito/app/components/ParagraphList.tsx#L38
Unsafe member access .children on an `any` value
|
Lint:
packages/dito/app/components/ParagraphList.tsx#L38
Unsafe member access .children on an `any` value
|
Run A11y tests
87 passed (2.7m)
|
Run E2E tests
4 flaky
[chromium] › e2e/examplePages.spec.ts:18:5 › Digitaltauglichkeit main functionality › displays detailed information for principle: digitale-kommunikation-sicherstellen
[chromium] › e2e/examplePages.spec.ts:30:5 › Digitaltauglichkeit main functionality › renders navigation links for principle: digitale-kommunikation-sicherstellen
[chromium] › e2e/resultForm.spec.ts:276:3 › test positive result for digital and unsure for interoperability › email recipients include digitalcheck team if interoperability is unsure
[webkit] › e2e/resultForm.spec.ts:86:3 › test positive result for digital and interoperability › error is shown if title is empty
422 passed (11.2m)
|
Loading