diff --git a/tests/storybook/workshop.spec.ts b/tests/storybook/workshop.spec.ts index fb036237..f291184f 100644 --- a/tests/storybook/workshop.spec.ts +++ b/tests/storybook/workshop.spec.ts @@ -8,8 +8,12 @@ import { test("runs the isolated overlay interaction with blocking accessibility", async ({ page, }) => { + // The a11y addon runs axe on its own after the story renders unless the + // a11y global is manual. Its run and AxeBuilder's below share the page's axe + // instance, so the second one failed with "Axe is already running" whenever + // they overlapped. This test owns the accessibility check. await page.goto( - "/iframe.html?id=platform-design-system--overlay-interaction&viewMode=story", + "/iframe.html?id=platform-design-system--overlay-interaction&viewMode=story&globals=a11y.manual:!true", ); const trigger = page.getByRole("button", { name: "Open dialog" }); await expect(trigger).toBeVisible();