test: add a11y tests to showcases #11343
Annotations
3 errors, 1 warning, and 1 notice
🔣 Print GitHub Report:
showcases/e2e/home/showcase-home.spec.ts#L25
1) [mobile_chrome] › home/showcase-home.spec.ts:11:2 › Home › should not have any A11y issues ────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 53
- Array []
+ Array [
+ Object {
+ "description": "Ensures <dl> elements are structured correctly",
+ "help": "<dl> elements must only directly contain properly-ordered <dt> and <dd> groups, <script>, <template> or <div> elements",
+ "helpUrl": "https://dequeuniversity.com/rules/axe/4.9/definition-list?application=playwright",
+ "id": "definition-list",
+ "impact": "serious",
+ "nodes": Array [
+ Object {
+ "all": Array [],
+ "any": Array [],
+ "failureSummary": "Fix all of the following:
+ dl element has direct children that are not allowed: br, dbtabs",
+ "html": "<dl>",
+ "impact": "serious",
+ "none": Array [
+ Object {
+ "data": Object {
+ "values": "br, dbtabs",
+ },
+ "id": "only-dlitems",
+ "impact": "serious",
+ "message": "dl element has direct children that are not allowed: br, dbtabs",
+ "relatedNodes": Array [
+ Object {
+ "html": "<br>",
+ "target": Array [
+ "br",
+ ],
+ },
+ Object {
+ "html": "<dbtabs orientation=\"vertical\">",
+ "target": Array [
+ "dbtabs",
+ ],
+ },
+ ],
+ },
+ ],
+ "target": Array [
+ "dl",
+ ],
+ },
+ ],
+ "tags": Array [
+ "cat.structure",
+ "wcag2a",
+ "wcag131",
+ "EN-301-549",
+ "EN-9.1.3.1",
+ ],
+ },
+ ]
23 | .analyze();
24 |
> 25 | expect(accessibilityScanResults.violations).toEqual([]);
| ^
26 | });
27 | });
28 |
at /__w/mono/mono/showcases/e2e/home/showcase-home.spec.ts:25:47
|
🔣 Print GitHub Report:
showcases/e2e/home/showcase-home.spec.ts#L25
1) [mobile_chrome] › home/showcase-home.spec.ts:11:2 › Home › should not have any A11y issues ────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 53
- Array []
+ Array [
+ Object {
+ "description": "Ensures <dl> elements are structured correctly",
+ "help": "<dl> elements must only directly contain properly-ordered <dt> and <dd> groups, <script>, <template> or <div> elements",
+ "helpUrl": "https://dequeuniversity.com/rules/axe/4.9/definition-list?application=playwright",
+ "id": "definition-list",
+ "impact": "serious",
+ "nodes": Array [
+ Object {
+ "all": Array [],
+ "any": Array [],
+ "failureSummary": "Fix all of the following:
+ dl element has direct children that are not allowed: br, dbtabs",
+ "html": "<dl>",
+ "impact": "serious",
+ "none": Array [
+ Object {
+ "data": Object {
+ "values": "br, dbtabs",
+ },
+ "id": "only-dlitems",
+ "impact": "serious",
+ "message": "dl element has direct children that are not allowed: br, dbtabs",
+ "relatedNodes": Array [
+ Object {
+ "html": "<br>",
+ "target": Array [
+ "br",
+ ],
+ },
+ Object {
+ "html": "<dbtabs orientation=\"vertical\">",
+ "target": Array [
+ "dbtabs",
+ ],
+ },
+ ],
+ },
+ ],
+ "target": Array [
+ "dl",
+ ],
+ },
+ ],
+ "tags": Array [
+ "cat.structure",
+ "wcag2a",
+ "wcag131",
+ "EN-301-549",
+ "EN-9.1.3.1",
+ ],
+ },
+ ]
23 | .analyze();
24 |
> 25 | expect(accessibilityScanResults.violations).toEqual([]);
| ^
26 | });
27 | });
28 |
at /__w/mono/mono/showcases/e2e/home/showcase-home.spec.ts:25:47
|
👩🔬 Test showcase with Playwright 🎭
Process completed with exit code 1.
|
🔣 Print GitHub Report:
[webkit] › default.ts#L1
[webkit] › default.ts took 25.0s
|
🔣 Print GitHub Report
1 failed
[mobile_chrome] › home/showcase-home.spec.ts:11:2 › Home › should not have any A11y issues ─────
2 skipped
39 passed (49.6s)
|
Loading