An open source design system that's fully customizable and agent ready
TypeScript
test(a11y): retire fixed listbox failures (#6757)
Cindy Zhangee13359aefb2
diff --git a/packages/core/src/Selector/__tests__/Listbox.a11y.inventory.test.ts b/packages/core/src/Selector/__tests__/Listbox.a11y.inventory.test.tsindex 83194c1ff8..0ff8ba8941 100644--- a/packages/core/src/Selector/__tests__/Listbox.a11y.inventory.test.ts+++ b/packages/core/src/Selector/__tests__/Listbox.a11y.inventory.test.ts@@ -42,7 +42,7 @@ describe('Listbox migration inventory', () => {]);});- it('pins each known failure to one exact inventory part', () => {+ it('pins every remaining known failure to one exact inventory part', () => {const parts = LISTBOX_SCENARIOS.flatMap(scenario =>listboxParts(scenario).map(part => ({binding: `${scenario.component}.${part.role}`,@@ -50,7 +50,7 @@ describe('Listbox migration inventory', () => {})),);- expect(LISTBOX_KNOWN_FAILURES).toHaveLength(2);+ expect(LISTBOX_KNOWN_FAILURES).toHaveLength(1);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.tsindex 861e7a5912..26644a2ad3 100644--- a/packages/core/src/Selector/__tests__/Listbox.a11y.known-failures.ts+++ b/packages/core/src/Selector/__tests__/Listbox.a11y.known-failures.ts@@ -3,25 +3,13 @@/*** @file Listbox.a11y.known-failures.ts* @input Uses KnownFailure from @astryxdesign/a11y-spec- * @output Exact public-safe Selector and MultiSelector listbox migration failures+ * @output Current public-safe Selector and MultiSelector listbox migration failures* @position AST-021 debt records; operational ownership remains outside public source.*/import type {KnownFailure} from '@astryxdesign/a11y-spec';export const LISTBOX_KNOWN_FAILURES: ReadonlyArray<KnownFailure> = [- {- expectation: 'listbox.exposure.identity',- binding: 'Selector.listbox',- state: 'single-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 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.',- },{expectation: 'listbox.exposure.identity',binding: 'MultiSelector.listbox',