An open source design system that's fully customizable and agent ready
TypeScript
test(Chat): read aria-disabled in SendButton audit (#10512)
Cindy Zhang80e880df0278
diff --git a/packages/core/src/Chat/__tests__/ChatSendButton.a11y.chromium.spec.ts b/packages/core/src/Chat/__tests__/ChatSendButton.a11y.chromium.spec.tsindex 8d21b2532e..7f6e46fe34 100644--- a/packages/core/src/Chat/__tests__/ChatSendButton.a11y.chromium.spec.ts+++ b/packages/core/src/Chat/__tests__/ChatSendButton.a11y.chromium.spec.ts@@ -547,7 +547,7 @@ async function readSensors(page: Page, interaction: Interaction) {role:element?.getAttribute('role') ?? element?.tagName.toLowerCase() ?? null,accessibleName: element?.getAttribute('aria-label') ?? null,- disabled: element?.disabled ?? false,+ disabled: element?.getAttribute('aria-disabled') === 'true',size: element?.getAttribute('data-size') ?? null,variant: element?.getAttribute('data-variant') ?? null,direction: style?.direction ?? '',@@ -735,7 +735,7 @@ async function capture(parseRgb(actual.pressedOverlayToken),);const representation = fixture.disabled- ? 'Disabled: native disabled, muted and non-interactive'+ ? 'Disabled: aria-disabled, muted and non-interactive': interaction === 'hover'? 'Hovered: overlay style': interaction === 'focus-visible'