-
-
Notifications
You must be signed in to change notification settings - Fork 618
Open
Labels
Description
I run a suite of SiteSpeed tests regularly, and the Axe.Core tests are crucial for gathering information. However, since these tests take a long time and their results don't vary between iterations, I want to run them only during the first iteration.
Attempts:
1. Setting the enabled flag in PreScript and PostScript:
if (context.index === 1) {
context.options.axe = { enable: true, tags: "wcag22aa" };
} else {
context.options.axe = { enable: false };
}
This approach didn't work because the Axe tests run before the PostScript and seemed to have no effect on whether the test runs or not in the prescript.
2. Using the code with and without the --axe.enable flag in the Docker command:
If --axe.enable isn't included in the Docker command, the Axe tests don't run at all, regardless of the PreScript settings.