Skip to content

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

TypeScript

test(CommandPalette): match the current Spinner progressbar role (#10196)

Cindy Zhang8ee380b8ae41
diff --git a/packages/core/src/CommandPalette/__tests__/CommandPalette.a11y.chromium.spec.ts b/packages/core/src/CommandPalette/__tests__/CommandPalette.a11y.chromium.spec.ts
index 9feb5aaf74..26b8919531 100644
--- a/packages/core/src/CommandPalette/__tests__/CommandPalette.a11y.chromium.spec.ts
+++ b/packages/core/src/CommandPalette/__tests__/CommandPalette.a11y.chromium.spec.ts
@@ -135,7 +135,7 @@ async function capture(page: Page, scenario: Case) {
await expect(
subject
.getByRole('region', {name: 'Pending command palette'})
- .locator('.astryx-spinner[role="status"]'),
+ .locator('.astryx-spinner[role="progressbar"]'),
).toHaveCount(1);
await page.waitForTimeout(200);
await holdMotionStill(page);