Skip to content

Commit

Permalink
LG-12800 fix prettier errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ajfarkas committed Jul 3, 2024
1 parent 96bbeb7 commit 5c41635
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions spec/e2e/accessibility.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,11 @@ describe('accessibility', () => {
// redirects are causing testing issues
const file = await readFile(`./_site${path}index.html`, { encoding: 'utf8' });
if (file.match('<meta http-equiv="refresh"')) {
return console.log(`redirect skipped: ${path}`);
return;
}
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']).analyze();
await page.close();

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

0 comments on commit 5c41635

Please sign in to comment.