Skip to content

Refactor result form tests and add missing cases #1600

Refactor result form tests and add missing cases

Refactor result form tests and add missing cases #1600

Triggered via pull request January 20, 2025 11:41
Status Success
Total duration 17m 45s
Artifacts 2

pipeline.yml

on: pull_request
changes
7s
changes
vulnerability-scan  /  vulnerability-scan
27s
vulnerability-scan / vulnerability-scan
check-and-test-shared  /  check-and-test
check-and-test-shared / check-and-test
Matrix: check-test-build-deploy
Fit to window
Zoom out
Zoom in

Annotations

5 errors, 6 warnings, and 2 notices
[chromium] › e2e/examplePages.spec.ts:18:5 › Digitaltauglichkeit main functionality › displays detailed information for principle: digitale-kommunikation-sicherstellen: 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
[chromium] › e2e/examplePages.spec.ts:30:5 › Digitaltauglichkeit main functionality › renders navigation links for principle: digitale-kommunikation-sicherstellen: 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.
[chromium] › e2e/general.spec.ts:17:5 › test general availability › /vorpruefung/kommunikation is reachable and has a breadcrumb menu + title: packages/dito/tests/e2e/general.spec.ts#L21
3) [chromium] › e2e/general.spec.ts:17:5 › test general availability › /vorpruefung/kommunikation is reachable and has a breadcrumb menu + title Error: Timed out 5000ms waiting for expect(locator).toBeVisible() Locator: getByTestId('breadcrumbs-menu') Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 5000ms - waiting for getByTestId('breadcrumbs-menu') 19 | }) => { 20 | await page.goto(route.url, { waitUntil: "networkidle" }); > 21 | await expect(page.getByTestId("breadcrumbs-menu")).toBeVisible(); | ^ 22 | await expect(page).toHaveTitle( 23 | /Digitalcheck: Digitaltaugliche Regelungen erarbeiten$/, 24 | ); at /home/runner/work/digitalcheck-apps/digitalcheck-apps/packages/dito/tests/e2e/general.spec.ts:21:58
[webkit] › e2e/resultForm.spec.ts:276:3 › test positive result for digital and unsure for interoperability › email recipients include digitalcheck team if interoperability is unsure: packages/dito/tests/e2e/resultForm.spec.ts#L258
4) [webkit] › 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
[webkit] › e2e/resultForm.spec.ts:276:3 › test positive result for digital and unsure for interoperability › email recipients include digitalcheck team if interoperability is unsure: packages/dito/tests/e2e/resultForm.spec.ts#L267
4) [webkit] › 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: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for getByRole('button', { name: 'Übernehmen' }) - locator resolved to <button disabled type="submit" class="ds-button" id="preCheck-next-button" data-testid="preCheck-next-button">…</button> - attempting click action 2 × waiting for element to be visible, enabled and stable - element is not enabled - retrying click action - waiting 20ms 2 × waiting for element to be visible, enabled and stable - element is not enabled - retrying click action - waiting 100ms 52 × waiting for element to be visible, enabled and stable - element is not enabled - retrying click action - waiting 500ms 265 | .getByLabel(questions[i].interoperability ? "Ich bin unsicher" : "Ja") 266 | .click(); > 267 | await page.getByRole("button", { name: "Übernehmen" }).click(); | ^ 268 | } 269 | }, 270 | ); at /home/runner/work/digitalcheck-apps/digitalcheck-apps/packages/dito/tests/e2e/resultForm.spec.ts:267:64
changes
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
vulnerability-scan / vulnerability-scan
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
check-test-build-deploy (dito) / check-and-test-shared / check-and-test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
check-test-build-deploy (dito) / build-and-push-image
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
🎭 Playwright Run Summary
87 passed (2.6m)
🎭 Playwright Run Summary
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/general.spec.ts:17:5 › test general availability › /vorpruefung/kommunikation is reachable and has a breadcrumb menu + title [webkit] › e2e/resultForm.spec.ts:276:3 › test positive result for digital and unsure for interoperability › email recipients include digitalcheck team if interoperability is unsure 422 passed (10.8m)

Artifacts

Produced during runtime
Name Size
SBOM-digitalcheck-dito
4.81 KB
digitalcheck-dito-vulnerabilities.json
30.5 KB