From 84b4a8105b753b4dd369520da95baff591d26003 Mon Sep 17 00:00:00 2001 From: tnelms1 Date: Mon, 9 Dec 2024 15:37:14 -0700 Subject: [PATCH] SBVT-2842: Adding axe to all the screenshots --- commands.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands.js b/commands.js index 8e0c48d..5f27d7c 100644 --- a/commands.js +++ b/commands.js @@ -170,6 +170,7 @@ const takeScreenshot = (element, name, modifiedOptions, win) => { message: `starting cypress's default full-page screenshot chrome because of the mismatch` }); if (modifiedOptions.freezePage) freezePageResult = runFreezePage(win, toolkitScripts.freezePage); + runAxeCheck() takeDefaultFullpageScreenshot(win, scrollArray, numScrolls, viewportHeight, offsetHeight, viewportWidth, imageName, initialPageState, modifiedOptions); } else { // No errors so far @@ -189,7 +190,7 @@ const takeScreenshot = (element, name, modifiedOptions, win) => { } else if (modifiedOptions.freezePage) { freezePageResult = runFreezePage(win, toolkitScripts.freezePage); } - + runAxeCheck() takeAllTheViewportScreenshots(win, scrollArray, numScrolls, viewportHeight, offsetHeight, viewportWidth, imageName, initialPageState, modifiedOptions); return null; }