fix: locale tests for trailing slashes #8
validate.yml
on: push
Annotations
4 errors, 5 warnings, and 1 notice
[chromium] › tests/pages/imprint.test.ts:16:2 › imprint page › should have imprint text:
e2e/tests/pages/imprint.test.ts#L26
1) [chromium] › tests/pages/imprint.test.ts:16:2 › imprint page › should have imprint text ───────
Error: Timed out 5000ms waiting for expect(locator).toContainText(expected)
Locator: getByRole('main')
Expected string: "Legal disclosure"
Received string: "ImprintOK"
Call log:
- expect.toContainText with timeout 5000ms
- waiting for getByRole('main')
- locator resolved to <main tabindex="-1" id="main-content" class="container max-w-3xl py-8">…</main>
- unexpected value "ImprintOK"
- locator resolved to <main tabindex="-1" id="main-content" class="container max-w-3xl py-8">…</main>
- unexpected value "ImprintOK"
- locator resolved to <main tabindex="-1" id="main-content" class="container max-w-3xl py-8">…</main>
- unexpected value "ImprintOK"
- locator resolved to <main tabindex="-1" id="main-content" class="container max-w-3xl py-8">…</main>
- unexpected value "ImprintOK"
- locator resolved to <main tabindex="-1" id="main-content" class="container max-w-3xl py-8">…</main>
- unexpected value "ImprintOK"
- locator resolved to <main tabindex="-1" id="main-content" class="container max-w-3xl py-8">…</main>
- unexpected value "ImprintOK"
- locator resolved to <main tabindex="-1" id="main-content" class="container max-w-3xl py-8">…</main>
- unexpected value "ImprintOK"
- locator resolved to <main tabindex="-1" id="main-content" class="container max-w-3xl py-8">…</main>
- unexpected value "ImprintOK"
- locator resolved to <main tabindex="-1" id="main-content" class="container max-w-3xl py-8">…</main>
- unexpected value "ImprintOK"
24 | await imprintPage.goto();
25 |
> 26 | await expect(imprintPage.page.getByRole("main")).toContainText(imprints[locale]);
| ^
27 | }
28 | });
29 |
at /home/runner/work/oad-approaching-byzantium/oad-approaching-byzantium/e2e/tests/pages/imprint.test.ts:26:53
|
[chromium] › tests/pages/imprint.test.ts:16:2 › imprint page › should have imprint text:
e2e/tests/pages/imprint.test.ts#L26
1) [chromium] › tests/pages/imprint.test.ts:16:2 › imprint page › should have imprint text ───────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toContainText(expected)
Locator: getByRole('main')
Expected string: "Legal disclosure"
Received string: "ImprintOK"
Call log:
- expect.toContainText with timeout 5000ms
- waiting for getByRole('main')
- locator resolved to <main tabindex="-1" id="main-content" class="container max-w-3xl py-8">…</main>
- unexpected value "ImprintOK"
- locator resolved to <main tabindex="-1" id="main-content" class="container max-w-3xl py-8">…</main>
- unexpected value "ImprintOK"
- locator resolved to <main tabindex="-1" id="main-content" class="container max-w-3xl py-8">…</main>
- unexpected value "ImprintOK"
- locator resolved to <main tabindex="-1" id="main-content" class="container max-w-3xl py-8">…</main>
- unexpected value "ImprintOK"
- locator resolved to <main tabindex="-1" id="main-content" class="container max-w-3xl py-8">…</main>
- unexpected value "ImprintOK"
- locator resolved to <main tabindex="-1" id="main-content" class="container max-w-3xl py-8">…</main>
- unexpected value "ImprintOK"
- locator resolved to <main tabindex="-1" id="main-content" class="container max-w-3xl py-8">…</main>
- unexpected value "ImprintOK"
- locator resolved to <main tabindex="-1" id="main-content" class="container max-w-3xl py-8">…</main>
- unexpected value "ImprintOK"
- locator resolved to <main tabindex="-1" id="main-content" class="container max-w-3xl py-8">…</main>
- unexpected value "ImprintOK"
24 | await imprintPage.goto();
25 |
> 26 | await expect(imprintPage.page.getByRole("main")).toContainText(imprints[locale]);
| ^
27 | }
28 | });
29 |
at /home/runner/work/oad-approaching-byzantium/oad-approaching-byzantium/e2e/tests/pages/imprint.test.ts:26:53
|
[chromium] › tests/pages/imprint.test.ts:16:2 › imprint page › should have imprint text:
e2e/tests/pages/imprint.test.ts#L26
1) [chromium] › tests/pages/imprint.test.ts:16:2 › imprint page › should have imprint text ───────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toContainText(expected)
Locator: getByRole('main')
Expected string: "Legal disclosure"
Received string: "ImprintOK"
Call log:
- expect.toContainText with timeout 5000ms
- waiting for getByRole('main')
- locator resolved to <main tabindex="-1" id="main-content" class="container max-w-3xl py-8">…</main>
- unexpected value "ImprintOK"
- locator resolved to <main tabindex="-1" id="main-content" class="container max-w-3xl py-8">…</main>
- unexpected value "ImprintOK"
- locator resolved to <main tabindex="-1" id="main-content" class="container max-w-3xl py-8">…</main>
- unexpected value "ImprintOK"
- locator resolved to <main tabindex="-1" id="main-content" class="container max-w-3xl py-8">…</main>
- unexpected value "ImprintOK"
- locator resolved to <main tabindex="-1" id="main-content" class="container max-w-3xl py-8">…</main>
- unexpected value "ImprintOK"
- locator resolved to <main tabindex="-1" id="main-content" class="container max-w-3xl py-8">…</main>
- unexpected value "ImprintOK"
- locator resolved to <main tabindex="-1" id="main-content" class="container max-w-3xl py-8">…</main>
- unexpected value "ImprintOK"
- locator resolved to <main tabindex="-1" id="main-content" class="container max-w-3xl py-8">…</main>
- unexpected value "ImprintOK"
- locator resolved to <main tabindex="-1" id="main-content" class="container max-w-3xl py-8">…</main>
- unexpected value "ImprintOK"
24 | await imprintPage.goto();
25 |
> 26 | await expect(imprintPage.page.getByRole("main")).toContainText(imprints[locale]);
| ^
27 | }
28 | });
29 |
at /home/runner/work/oad-approaching-byzantium/oad-approaching-byzantium/e2e/tests/pages/imprint.test.ts:26:53
|
Validate (20.x, ubuntu-latest)
Process completed with exit code 1.
|
Validate (20.x, ubuntu-latest):
components/entity-details.vue#L47
Variable 'relations' is already declared in the upper scope
|
Validate (20.x, ubuntu-latest):
components/ui/collapsible/Collapsible.vue#L16
Variable 'open' is already declared in the upper scope
|
Validate (20.x, ubuntu-latest):
e2e/tests/pages/imprint.test.ts#L43
Unexpected use of the `.skip()` annotation
|
Validate (20.x, ubuntu-latest):
e2e/tests/pages/index.test.ts#L29
Unexpected use of the `.skip()` annotation
|
Validate (20.x, ubuntu-latest)
No files were found with the provided path: playwright-report/. No artifacts will be uploaded.
|
🎭 Playwright Run Summary
1 failed
[chromium] › tests/pages/imprint.test.ts:16:2 › imprint page › should have imprint text ────────
2 skipped
22 passed (28.6s)
|