Skip to content

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

TypeScript

test(CheckboxList): the group-disabled item's binding fact expects the reason as its description (#9248)

Cindy Zhang2a905bb85cc2
diff --git a/packages/core/src/CheckboxInput/__tests__/Checkbox.a11y.states.ts b/packages/core/src/CheckboxInput/__tests__/Checkbox.a11y.states.ts
index 8eb1c416a9..b83ea5aed7 100644
--- a/packages/core/src/CheckboxInput/__tests__/Checkbox.a11y.states.ts
+++ b/packages/core/src/CheckboxInput/__tests__/Checkbox.a11y.states.ts
@@ -311,8 +311,13 @@ export const CHECKBOX_BINDING_STATES = [
id: 'list-item-group-disabled-with-message',
binding: 'CheckboxListItem',
summary:
- 'an item in an unavailable group, kept focusable so the group reason is discoverable',
- facts: facts({checked: true, operable: false, disabled: true}),
+ 'an item in an unavailable group, kept focusable and described by the group reason',
+ facts: facts({
+ checked: true,
+ operable: false,
+ disabled: true,
+ description: 'Managed by your administrator',
+ }),
visibleLabel: 'Email',
visibleLabelSelector: '[data-a11y-visible-label]',
storyId: 'a11y-checkbox-pattern--list-item-group-disabled-with-message',