fix(e2e): fix strict mode violation in clients detail test

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 <noreply@paperclip.ing>
This commit is contained in:
Groom Book CTO
2026-03-18 02:50:17 +00:00
parent aa3b080c05
commit c957ee2504
+2 -2
View File
@@ -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);
});