From 30311af78ad8a8c3138868fa2dd8c6eeea304b28 Mon Sep 17 00:00:00 2001 From: codex Date: Tue, 21 Apr 2026 18:18:01 -0300 Subject: [PATCH] test(bstein-home): decouple e2e overlay from mermaid render --- testing/frontend/e2e/home.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/frontend/e2e/home.spec.js b/testing/frontend/e2e/home.spec.js index c769016..8437c4d 100644 --- a/testing/frontend/e2e/home.spec.js +++ b/testing/frontend/e2e/home.spec.js @@ -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");