Skip to content

Commit c444ba2

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

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

core/src/components/picker-column-option/test/a11y/picker-column-option.e2e.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,7 @@ configs({ directions: ['ltr'] }).forEach(({ config, title }) => {
1212

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

15-
const hasKnownViolations = results.violations.filter((violation) => violation.id === 'color-contrast');
16-
const violations = results.violations.filter((violation) => !hasKnownViolations.includes(violation));
17-
18-
if (hasKnownViolations.length > 0) {
19-
console.warn('Known color contrast violations:', hasKnownViolations);
20-
}
21-
22-
expect(violations).toEqual([]);
15+
expect(results.violations).toEqual([]);
2316
});
2417
});
2518
});

0 commit comments

Comments
 (0)