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");