test: add a11y tests to showcases #11488
Annotations
3 errors and 1 notice
👩🔬 Test showcase with Playwright 🎭
Process completed with exit code 1.
|
🔣 Print GitHub Report:
showcases/e2e/default.ts#L89
1) [webkit] › default.ts:52:2 › DBHeader › should match screenshot ───────────────────────────────
Error: A snapshot doesn't exist at /__w/mono/mono/__snapshots__/header/showcase/webkit/regular/neutral-bg-lvl-1/DBHeader-should-match-screenshot.png, writing actual.
87 | }
88 |
> 89 | await expect(page).toHaveScreenshot(
| ^
90 | [density, `neutral-bg-lvl-1.png`],
91 | config
92 | );
at /__w/mono/mono/showcases/e2e/default.ts:89:3
|
🔣 Print GitHub Report:
showcases/e2e/home/showcase-home.spec.ts#L31
2) [webkit] › home/showcase-home.spec.ts:11:2 › Home › should not have any A11y issues ───────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 47
- Array []
+ Array [
+ Object {
+ "description": "Ensures interactive controls are not nested as they are not always announced by screen readers or can cause focus problems for assistive technologies",
+ "help": "Interactive controls must not be nested",
+ "helpUrl": "https://dequeuniversity.com/rules/axe/4.9/nested-interactive?application=playwright",
+ "id": "nested-interactive",
+ "impact": "serious",
+ "nodes": Array [
+ Object {
+ "all": Array [],
+ "any": Array [
+ Object {
+ "data": null,
+ "id": "no-focusable-content",
+ "impact": "serious",
+ "message": "Element has focusable descendants",
+ "relatedNodes": Array [
+ Object {
+ "html": "<a href=\"#/\">Home</a>",
+ "target": Array [
+ "a[href=\"#/\"]",
+ ],
+ },
+ ],
+ },
+ ],
+ "failureSummary": "Fix any of the following:
+ Element has focusable descendants",
+ "html": "<button class=\"db-navigation-item-expand-button\" aria-haspopup=\"false\" aria-expanded=\"false\"><a href=\"#/\">Home</a></button>",
+ "impact": "serious",
+ "none": Array [],
+ "target": Array [
+ ":root",
+ ],
+ },
+ ],
+ "tags": Array [
+ "cat.keyboard",
+ "wcag2a",
+ "wcag412",
+ "TTv5",
+ "TT6.a",
+ "EN-301-549",
+ "EN-9.4.1.2",
+ ],
+ },
+ ]
29 | .analyze();
30 |
> 31 | expect(accessibilityScanResults.violations).toEqual([]);
| ^
32 | });
33 | });
34 |
at /__w/mono/mono/showcases/e2e/home/showcase-home.spec.ts:31:47
|
🔣 Print GitHub Report
1 failed
[webkit] › default.ts:52:2 › DBHeader › should match screenshot ────────────────────────────────
1 flaky
[webkit] › home/showcase-home.spec.ts:11:2 › Home › should not have any A11y issues ────────────
108 passed (2.9m)
|
Loading