fix(test): refine e2e accessiblity rules

This commit is contained in:
Andelf
2023-09-25 22:34:57 +08:00
parent 0eacbc46a9
commit 46c7213d5a
2 changed files with 2 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ test('should not have any automatically detectable accessibility issues', async
await page.waitForTimeout(2000)
const accessibilityScanResults = await new AxeBuilder({ page })
.withTags(['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa'])
.disableRules(['meta-viewport'])
.setLegacyMode()
.analyze()