Skip to content

Commit ab150f8

Browse files
author
ledouxm
committed
fix: ensure the correct element is targeted for validation status visibility checks
1 parent 0188f1e commit ab150f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/constat-validation.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ test.describe("Constat validation flow", () => {
118118
// 5b. Navigate home and check the list badge shows "En attente de validation"
119119
await page.getByRole("button", { name: "Accueil" }).click();
120120
await page.waitForURL((url) => url.pathname === "/");
121-
await expect(page.getByText("En attente de validation")).toBeVisible({ timeout: 15_000 });
121+
await expect(page.getByText("En attente de validation").first()).toBeVisible({ timeout: 15_000 });
122122

123123
// -------------------------------------------------------------------------
124124
// 6. Verify the validation email was sent to the validator — NOT the recipient
@@ -278,7 +278,7 @@ test.describe("Constat validation flow", () => {
278278
// Check the list badge shows "En attente de validation"
279279
await page.getByRole("button", { name: "Accueil" }).click();
280280
await page.waitForURL((url) => url.pathname === "/");
281-
await expect(page.getByText("En attente de validation")).toBeVisible({ timeout: 15_000 });
281+
await expect(page.getByText("En attente de validation").first()).toBeVisible({ timeout: 15_000 });
282282

283283
// Navigate back to get the validation link
284284
await page.goBack();

0 commit comments

Comments
 (0)