Skip to content

Commit

Permalink
SBVT-2842: Adding axe to all the screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
tnelms1 committed Dec 9, 2024
1 parent 04b0e13 commit 84b4a81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
}
Expand Down

0 comments on commit 84b4a81

Please sign in to comment.