We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c444ba2 commit 6ea9eecCopy full SHA for 6ea9eec
core/src/components/picker/test/a11y/picker.e2e.ts
@@ -9,14 +9,7 @@ configs().forEach(({ title, config }) => {
9
10
const results = await new AxeBuilder({ page }).disableRules('color-contrast').analyze();
11
12
- const hasKnownViolations = results.violations.filter((violation) => violation.id === 'color-contrast');
13
- const violations = results.violations.filter((violation) => !hasKnownViolations.includes(violation));
14
-
15
- if (hasKnownViolations.length > 0) {
16
- console.warn('A11Y: Known violation - contrast color.', hasKnownViolations);
17
- }
18
19
- expect(violations).toEqual([]);
+ expect(results.violations).toEqual([]);
20
});
21
22
0 commit comments