Skip to content

Commit

Permalink
fix: increase speed for accessibility-checker by using playwright pag…
Browse files Browse the repository at this point in the history
…e.content
  • Loading branch information
nmerget committed Jul 22, 2024
1 parent bd089c9 commit 09b2f9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion showcases/e2e/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ export const getDefaultScreenshotTest = ({
test.skip();
}

const { report } = await getCompliance(page, path);
const html = await page.content();

const { report } = await getCompliance(html, path);

if (isCheckerError(report)) {
failures = report.details;
Expand Down

0 comments on commit 09b2f9d

Please sign in to comment.