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:
committed by
Flea Flicker
parent
9def349244
commit
4add9669ab
@@ -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 }) => {
|
||||
|
||||
Reference in New Issue
Block a user