feat: consolidate shared UI and harden browser authority for release
This commit is contained in:
@@ -152,22 +152,22 @@ test("shared components remain accessible and keyboard operable", async ({ page
|
||||
await expect(editorActions.locator("[data-page-action-separation='destructive']")).toHaveCSS("border-left-width", "2px");
|
||||
const actionSlots = await editorActions.locator("[data-page-action-slot]").evaluateAll((elements) => elements.map((element) => element.getAttribute("data-page-action-slot")));
|
||||
expect(actionSlots).toEqual([
|
||||
"reload",
|
||||
"context",
|
||||
"reload",
|
||||
"destructive",
|
||||
"discard",
|
||||
"save"
|
||||
]);
|
||||
await expect(editorActions.getByRole("button")).toHaveText([
|
||||
"Neu laden",
|
||||
"Vorschau öffnen",
|
||||
"Neu laden",
|
||||
"Löschen",
|
||||
"Verwerfen",
|
||||
"Änderungen speichern"
|
||||
]);
|
||||
await editorActions.getByRole("button", { name: "Neu laden" }).focus();
|
||||
await editorActions.getByRole("button", { name: "Vorschau öffnen" }).focus();
|
||||
await page.keyboard.press("Tab");
|
||||
await expect(editorActions.getByRole("button", { name: "Vorschau öffnen" })).toBeFocused();
|
||||
await expect(editorActions.getByRole("button", { name: "Neu laden" })).toBeFocused();
|
||||
await page.keyboard.press("Tab");
|
||||
await expect(editorActions.locator(".disabled-action-tooltip")).toBeFocused();
|
||||
await expect(page.getByRole("tooltip")).toContainText("Nur die federführende Stelle");
|
||||
|
||||
Reference in New Issue
Block a user