Adds links to screenshots when include_screenshots is true
#192
Annotations
2 errors
|
Test (sites/site-with-errors)
Process completed with exit code 1.
|
|
tests/site-with-errors.test.ts > site-with-errors > cache has expected results:
tests/site-with-errors.test.ts#L113
AssertionError: expected [ { scannerType: 'axe', …(5) }, …(5) ] to deeply equal ArrayContaining{…}
- Expected
+ Received
- ArrayContaining [
+ [
{
"html": "<span class=\"post-meta\">Jul 30, 2025</span>",
"problemShort": "elements must meet minimum color contrast ratio thresholds",
"ruleId": "color-contrast",
"scannerType": "axe",
- "screenshotId": "12345678-1234-1234-1234-123456789012",
"solutionShort": "ensure the contrast between foreground and background colors meets wcag 2 aa minimum contrast ratio thresholds",
"url": "http://127.0.0.1:4000/",
},
{
"html": "<html lang=\"en\">",
"problemShort": "page should contain a level-one heading",
"ruleId": "page-has-heading-one",
"scannerType": "axe",
- "screenshotId": "12345678-1234-1234-1234-123456789012",
"solutionShort": "ensure that the page, or at least one of its frames contains a level-one heading",
"url": "http://127.0.0.1:4000/",
},
{
"html": "<time class=\"dt-published\" datetime=\"2025-07-30T17:32:33+00:00\" itemprop=\"datePublished\">Jul 30, 2025
</time>",
"problemShort": "elements must meet minimum color contrast ratio thresholds",
"ruleId": "color-contrast",
"scannerType": "axe",
- "screenshotId": "12345678-1234-1234-1234-123456789012",
"solutionShort": "ensure the contrast between foreground and background colors meets wcag 2 aa minimum contrast ratio thresholds",
"url": "http://127.0.0.1:4000/jekyll/update/2025/07/30/welcome-to-jekyll.html",
},
{
"html": "<a href=\"https://jekyllrb.com/\">jekyllrb.com</a>",
"problemShort": "elements must meet minimum color contrast ratio thresholds",
"ruleId": "color-contrast",
"scannerType": "axe",
- "screenshotId": "12345678-1234-1234-1234-123456789012",
"solutionShort": "ensure the contrast between foreground and background colors meets wcag 2 aa minimum contrast ratio thresholds",
"url": "http://127.0.0.1:4000/about/",
},
{
"html": "<li class=\"p-name\">Accessibility Scanner Demo</li>",
"problemShort": "elements must meet minimum color contrast ratio thresholds",
"ruleId": "color-contrast",
"scannerType": "axe",
- "screenshotId": "12345678-1234-1234-1234-123456789012",
"solutionShort": "ensure the contrast between foreground and background colors meets wcag 2 aa minimum contrast ratio thresholds",
"url": "http://127.0.0.1:4000/404.html",
},
{
"html": "<h1 class=\"post-title\"></h1>",
"problemShort": "headings should not be empty",
"ruleId": "empty-heading",
"scannerType": "axe",
- "screenshotId": "12345678-1234-1234-1234-123456789012",
"solutionShort": "ensure headings have discernible text",
"url": "http://127.0.0.1:4000/404.html",
},
]
❯ tests/site-with-errors.test.ts:113:20
|