test(bstein-home): decouple e2e overlay from mermaid render

This commit is contained in:
codex 2026-04-21 18:18:01 -03:00
parent 852ce6a2c0
commit 30311af78a

View File

@ -21,7 +21,7 @@ test.beforeEach(async ({ page }) => {
});
});
test("shows the overview and expands the mermaid diagram", async ({ page }) => {
test("shows the overview and opens the diagram overlay", async ({ page }) => {
await page.goto("/", { waitUntil: "domcontentloaded" });
await expect(page.getByRole("heading", { name: "Overview" })).toBeVisible();
@ -29,7 +29,7 @@ test("shows the overview and expands the mermaid diagram", async ({ page }) => {
await expect(page.locator(".service-grid .service").filter({ hasText: "Nextcloud" }).first()).toBeVisible();
const firstCard = page.locator(".mermaid-card").first();
await expect(firstCard.locator("svg")).toBeVisible();
await expect(firstCard).toBeVisible();
await firstCard.getByRole("button", { name: "Full screen" }).click();
await expect(page.locator(".overlay")).toBeVisible();
await page.keyboard.press("Escape");