Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

test(a11y): remove resolved Listbox known failure (#7174)

Cindy Zhangcc5573c596ff
diff --git a/packages/core/src/Selector/__tests__/Listbox.a11y.inventory.test.ts b/packages/core/src/Selector/__tests__/Listbox.a11y.inventory.test.ts
index 0ff8ba8941..b187c80cf2 100644
--- a/packages/core/src/Selector/__tests__/Listbox.a11y.inventory.test.ts
+++ b/packages/core/src/Selector/__tests__/Listbox.a11y.inventory.test.ts
@@ -50,7 +50,7 @@ describe('Listbox migration inventory', () => {
})),
);
- expect(LISTBOX_KNOWN_FAILURES).toHaveLength(1);
+ expect(LISTBOX_KNOWN_FAILURES).toHaveLength(0);
for (const record of LISTBOX_KNOWN_FAILURES) {
expect(
parts.filter(
diff --git a/packages/core/src/Selector/__tests__/Listbox.a11y.known-failures.ts b/packages/core/src/Selector/__tests__/Listbox.a11y.known-failures.ts
index 26644a2ad3..5f27fec46a 100644
--- a/packages/core/src/Selector/__tests__/Listbox.a11y.known-failures.ts
+++ b/packages/core/src/Selector/__tests__/Listbox.a11y.known-failures.ts
@@ -9,17 +9,4 @@
import type {KnownFailure} from '@astryxdesign/a11y-spec';
-export const LISTBOX_KNOWN_FAILURES: ReadonlyArray<KnownFailure> = [
- {
- expectation: 'listbox.exposure.identity',
- binding: 'MultiSelector.listbox',
- state: 'multiple-sheet:listbox',
- evidenceLayer: 'accessibility-tree',
- failureEquals: 'the browser exposes the listbox without an accessible name',
- standardsReference: 'WCAG 2.2 4.1.2 Name, Role, Value (Level A)',
- userImpact:
- 'An accessibility consumer encounters an unnamed multi-select listbox in the bottom-sheet presentation and cannot identify what set of choices it contains.',
- reason:
- 'The no-search bottom-sheet presentation renders a visible sheet heading without assigning that heading, or another label, as the listbox accessible name. This migration records the existing behavior without changing the component.',
- },
-];
+export const LISTBOX_KNOWN_FAILURES: ReadonlyArray<KnownFailure> = [];