From 4add9669ab2e494b37a014d5f9fa635242169c41 Mon Sep 17 00:00:00 2001 From: "groombook-ci[bot]" Date: Sat, 28 Mar 2026 22:46:19 +0000 Subject: [PATCH] =?UTF-8?q?fix(e2e):=20clients.spec.ts=20strict=20mode=20?= =?UTF-8?q?=E2=80=94=20use=20.first()=20for=20ambiguous=20selector?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `getByPlaceholder(/search/i)` resolves to 2 elements on the clients page. Use .first() to pick the first one for the visibility check. Co-Authored-By: Paperclip --- apps/e2e/tests/clients.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/e2e/tests/clients.spec.ts b/apps/e2e/tests/clients.spec.ts index cf99ad4..64cbcbc 100644 --- a/apps/e2e/tests/clients.spec.ts +++ b/apps/e2e/tests/clients.spec.ts @@ -53,7 +53,7 @@ test("clients page shows client list", async ({ page }) => { test("clients page shows search input", async ({ page }) => { await page.goto("/admin/clients"); - await expect(page.getByPlaceholder(/search/i)).toBeVisible(); + await expect(page.getByPlaceholder(/search/i).first()).toBeVisible(); }); test("clicking a client shows their details", async ({ page }) => {