fix(e2e): clients.spec.ts strict mode — use .first() for ambiguous selector

`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 <noreply@paperclip.ing>
This commit is contained in:
groombook-ci[bot]
2026-03-28 22:46:19 +00:00
committed by Flea Flicker
parent 9def349244
commit 4add9669ab
+1 -1
View File
@@ -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 }) => {