Skip to content

Commit

Permalink
Run Axe accessibility tests with best practices
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth committed Apr 19, 2024
1 parent 4b6a3eb commit 1a40a05
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/accessibility.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ describe('accessibility', () => {
test(path, async () => {
const page = await browser.newPage();
await page.goto(`http://localhost:${port}${path}`);
const results = await new AxePuppeteer(page).withTags(['wcag2a', 'wcag2aa']).analyze();
const results = await new AxePuppeteer(page)
.withTags(['wcag2a', 'wcag2aa', 'best-practice'])
.analyze();
await page.close();

assert.deepStrictEqual(results.violations, []);
Expand Down

0 comments on commit 1a40a05

Please sign in to comment.