Skip to content

Commit 6ea9eec

Browse files
Update core/src/components/picker/test/a11y/picker.e2e.ts
Co-authored-by: Brandy Smith <[email protected]>
1 parent c444ba2 commit 6ea9eec

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

core/src/components/picker/test/a11y/picker.e2e.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,7 @@ configs().forEach(({ title, config }) => {
99

1010
const results = await new AxeBuilder({ page }).disableRules('color-contrast').analyze();
1111

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([]);
12+
expect(results.violations).toEqual([]);
2013
});
2114
});
2215
});

0 commit comments

Comments
 (0)