File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ( ) ;
You can’t perform that action at this time.
0 commit comments