@@ -38,9 +38,10 @@ test.describe('Logout tests', () => {
3838
3939 await page . getByLabel ( 'User Name' ) . fill ( pingAmUsername ) ;
4040 await page . getByRole ( 'textbox' , { name : 'Password' } ) . fill ( pingAmPassword ) ;
41- const amNavigation = page . waitForURL ( 'http://localhost:8443/ping-am/**' ) ;
42- await page . getByRole ( 'button' , { name : 'Next' } ) . click ( ) ;
43- await amNavigation ;
41+ await Promise . all ( [
42+ page . waitForURL ( 'http://localhost:8443/ping-am/**' ) ,
43+ page . getByRole ( 'button' , { name : 'Next' } ) . click ( ) ,
44+ ] ) ;
4445 expect ( page . url ( ) ) . toContain ( 'code' ) ;
4546 expect ( page . url ( ) ) . toContain ( 'state' ) ;
4647 await expect ( page . getByRole ( 'button' , { name : 'Login (Background)' } ) ) . toBeHidden ( ) ;
@@ -74,9 +75,10 @@ test.describe('Logout tests', () => {
7475
7576 await page . getByLabel ( 'Username' ) . fill ( pingOneUsername ) ;
7677 await page . getByRole ( 'textbox' , { name : 'Password' } ) . fill ( pingOnePassword ) ;
77- const p1Navigation = page . waitForURL ( 'http://localhost:8443/ping-one/**' ) ;
78- await page . getByRole ( 'button' , { name : 'Sign On' } ) . click ( ) ;
79- await p1Navigation ;
78+ await Promise . all ( [
79+ page . waitForURL ( 'http://localhost:8443/ping-one/**' ) ,
80+ page . getByRole ( 'button' , { name : 'Sign On' } ) . click ( ) ,
81+ ] ) ;
8082 expect ( page . url ( ) ) . toContain ( 'code' ) ;
8183 expect ( page . url ( ) ) . toContain ( 'state' ) ;
8284 await expect ( page . getByRole ( 'button' , { name : 'Login (Background)' } ) ) . toBeHidden ( ) ;
0 commit comments