From c957ee2504c2ca78fc3b0397f5d3c66d70a824b3 Mon Sep 17 00:00:00 2001 From: Groom Book CTO Date: Wed, 18 Mar 2026 02:50:17 +0000 Subject: [PATCH] fix(e2e): fix strict mode violation in clients detail test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After clicking a client, their email appears in both the list row and the detail panel — causing a strict-mode violation with toBeVisible(). Use toHaveCount(2) instead to assert the detail panel is open. Co-Authored-By: Paperclip --- apps/e2e/tests/clients.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/e2e/tests/clients.spec.ts b/apps/e2e/tests/clients.spec.ts index 5891671..8e94e1a 100644 --- a/apps/e2e/tests/clients.spec.ts +++ b/apps/e2e/tests/clients.spec.ts @@ -54,6 +54,6 @@ test("clicking a client shows their details", async ({ page }) => { await page.goto("/clients"); await expect(page.getByText("Alice Johnson")).toBeVisible(); await page.getByText("Alice Johnson").click(); - // Client detail panel shows their email - await expect(page.getByText("alice@example.com")).toBeVisible(); + // Email appears in both the list row and the detail panel once selected + await expect(page.getByText("alice@example.com")).toHaveCount(2); });