File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ test.describe('Workflow — send to approval', () => {
144144 }
145145
146146 await expect (
147- page . getByText ( / r e a d y .f o r .a p p r o v a l / i) ,
147+ page . getByText ( / r e a d y .f o r .a p p r o v a l / i) . first ( ) ,
148148 ) . toBeVisible ( { timeout : 10_000 } ) ;
149149 } ) ;
150150} ) ;
@@ -186,7 +186,7 @@ test.describe('Workflow — approve', () => {
186186 await expect ( confirmBtn ) . toBeVisible ( ) ;
187187 await confirmBtn . click ( ) ;
188188
189- await expect ( page . getByText ( / a p p r o v e d / i) ) . toBeVisible ( { timeout : 10_000 } ) ;
189+ await expect ( page . getByText ( / a p p r o v e d / i) . first ( ) ) . toBeVisible ( { timeout : 10_000 } ) ;
190190 } ) ;
191191} ) ;
192192
@@ -227,6 +227,6 @@ test.describe('Workflow — reject', () => {
227227
228228 await page . getByRole ( 'button' , { name : / c o n f i r m | r e j e c t / i } ) . last ( ) . click ( ) ;
229229
230- await expect ( page . getByText ( / r e j e c t e d / i) ) . toBeVisible ( { timeout : 10_000 } ) ;
230+ await expect ( page . getByText ( / r e j e c t e d / i) . first ( ) ) . toBeVisible ( { timeout : 10_000 } ) ;
231231 } ) ;
232232} ) ;
You can’t perform that action at this time.
0 commit comments