From 09b2f9dd92618316517390c6ea1d72909a33f543 Mon Sep 17 00:00:00 2001 From: Nicolas Merget Date: Mon, 22 Jul 2024 18:36:41 +0200 Subject: [PATCH] fix: increase speed for accessibility-checker by using playwright page.content --- showcases/e2e/default.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/showcases/e2e/default.ts b/showcases/e2e/default.ts index 8709cbf0282..49284ef0bbc 100644 --- a/showcases/e2e/default.ts +++ b/showcases/e2e/default.ts @@ -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;