Minor test cleanup after upgrade

This commit is contained in:
Tim Donohue
2023-03-02 14:25:53 -06:00
parent 599e8a777e
commit 1ae3c183d4
12 changed files with 29 additions and 20 deletions

View File

@@ -40,5 +40,13 @@ export const testA11y = (context?: any, options?: Options) => {
{ id: 'color-contrast', enabled: false },
]
});
// Default retries to 2, meaning this accessibility test will retry up to 2 times.
const a11yRetries = 2;
if (options) {
options.retries = a11yRetries;
} else {
options = { retries: a11yRetries } as Options;
}
cy.checkA11y(context, options, terminalLog);
};