1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-08-10 22:11:50 +02:00

Chore: CI: Desktop: Re-run the accessibility scanner on failure (#12409)

This commit is contained in:
Henry Heino
2025-06-08 04:00:55 -07:00
committed by GitHub
parent f0d1dd1dd0
commit 884141c3e2

View File

@@ -28,10 +28,15 @@ const waitForAnimationsToEnd = (page: Page) => {
const expectNoViolations = async (page: Page) => {
await waitForAnimationsToEnd(page);
const results = await createScanner(page).analyze();
expect(results.violations).toEqual([]);
};
const scanner = createScanner(page);
// Retry the accessibility scanner on failure to prevent
// random failure in CI.
await expect.poll(async () => {
const results = await scanner.analyze();
return results.violations;
}).toEqual([]);
};
test.describe('wcag', () => {
for (const tabName of ['General', 'Plugins']) {