Skip to content

Commit b247cd0

Browse files
committed
fix: Update tests based on what axe is currently reporting
1 parent 4fe44d7 commit b247cd0

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

tests/site-with-errors.test.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,13 @@ describe("site-with-errors", () => {
4242
solutionShort: "ensure that the page, or at least one of its frames contains a level-one heading"
4343
}, {
4444
scannerType: "axe",
45-
url: "http://127.0.0.1:4000/404.html",
46-
html: '<li class="p-name">Continuous Accessibility Scanner Demo</li>',
45+
url: "http://127.0.0.1:4000/jekyll/update/2025/07/30/welcome-to-jekyll.html",
46+
html: `<time class="dt-published" datetime="2025-07-30T13:32:33-04:00" itemprop="datePublished">Jul 30, 2025
47+
</time>`,
4748
problemShort: "elements must meet minimum color contrast ratio thresholds",
4849
problemUrl: "https://dequeuniversity.com/rules/axe/4.10/color-contrast?application=playwright",
4950
ruleId: "color-contrast",
50-
solutionShort: "ensure the contrast between foreground and background colors meets wcag 2 aa minimum contrast ratio thresholds"
51-
}, {
52-
scannerType: "axe",
53-
url: "http://127.0.0.1:4000/404.html",
54-
html: '<h1 class="post-title"></h1>',
55-
problemShort: "headings should not be empty",
56-
problemUrl: "https://dequeuniversity.com/rules/axe/4.10/empty-heading?application=playwright",
57-
ruleId: "empty-heading",
58-
solutionShort: "ensure headings have discernible text",
51+
solutionShort: "ensure the contrast between foreground and background colors meets wcag 2 aa minimum contrast ratio thresholds",
5952
}, {
6053
scannerType: "axe",
6154
url: "http://127.0.0.1:4000/about/",
@@ -66,13 +59,20 @@ describe("site-with-errors", () => {
6659
solutionShort: "ensure the contrast between foreground and background colors meets wcag 2 aa minimum contrast ratio thresholds",
6760
}, {
6861
scannerType: "axe",
69-
url: "http://127.0.0.1:4000/jekyll/update/2025/07/30/welcome-to-jekyll.html",
70-
html: `<time class="dt-published" datetime="2025-07-30T13:32:33-04:00" itemprop="datePublished">Jul 30, 2025
71-
</time>`,
62+
url: "http://127.0.0.1:4000/404.html",
63+
html: '<li class="p-name">Continuous Accessibility Scanner Demo</li>',
7264
problemShort: "elements must meet minimum color contrast ratio thresholds",
7365
problemUrl: "https://dequeuniversity.com/rules/axe/4.10/color-contrast?application=playwright",
7466
ruleId: "color-contrast",
75-
solutionShort: "ensure the contrast between foreground and background colors meets wcag 2 aa minimum contrast ratio thresholds",
67+
solutionShort: "ensure the contrast between foreground and background colors meets wcag 2 aa minimum contrast ratio thresholds"
68+
}, {
69+
scannerType: "axe",
70+
url: "http://127.0.0.1:4000/404.html",
71+
html: '<h1 class="post-title"></h1>',
72+
problemShort: "headings should not be empty",
73+
problemUrl: "https://dequeuniversity.com/rules/axe/4.10/empty-heading?application=playwright",
74+
ruleId: "empty-heading",
75+
solutionShort: "ensure headings have discernible text",
7676
},
7777
];
7878
// Check that:

0 commit comments

Comments
 (0)