chore: initialize from frontend template 4dc033c
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import AxeBuilder from "@axe-core/playwright";
|
||||
|
||||
import {
|
||||
expect,
|
||||
test,
|
||||
} from "../support/browser/strict-browser-test.ts";
|
||||
|
||||
test("runs the isolated overlay interaction with blocking accessibility", async ({
|
||||
page,
|
||||
}) => {
|
||||
await page.goto(
|
||||
"/iframe.html?id=platform-design-system--overlay-interaction&viewMode=story",
|
||||
);
|
||||
const trigger = page.getByRole("button", { name: "Open dialog" });
|
||||
await expect(trigger).toBeVisible();
|
||||
await trigger.click();
|
||||
await expect(
|
||||
page.getByRole("dialog", { name: "Confirm platform action" }),
|
||||
).toBeVisible();
|
||||
const results = await new AxeBuilder({ page }).analyze();
|
||||
expect(results.violations).toEqual([]);
|
||||
await page.keyboard.press("Escape");
|
||||
await expect(trigger).toBeFocused();
|
||||
});
|
||||
Reference in New Issue
Block a user