@@ -39,8 +39,13 @@ import { START_FUNCTION } from './util/auth_driver';
39
39
use ( chaiAsPromised ) ;
40
40
41
41
browserDescribe ( 'WebDriver redirect IdP test' , driver => {
42
- beforeEach ( async ( ) => {
43
- await driver . pause ( 200 ) ; // Race condition on auth init
42
+ afterEach ( async function ( ) {
43
+ this . timeout ( 25000 ) ; // Starting browsers can be slow.
44
+
45
+ // Redirect tests are flaky on Chrome v111+
46
+ // Stop and re-initialize the webdrive instance to prevent flakiness.
47
+ await driver . stop ( ) ;
48
+ await driver . start ( 'chrome' ) ;
44
49
} ) ;
45
50
46
51
it ( 'allows users to sign in' , async ( ) => {
@@ -327,7 +332,9 @@ browserDescribe('WebDriver redirect IdP test', driver => {
327
332
expect ( user . email ) . to . eq ( user1 . email ) ;
328
333
} ) ;
329
334
330
- it ( 'reauthenticate throws for wrong user' , async ( ) => {
335
+ // Test is ignored for now as it fails on Chrome version 111+.
336
+ // TODO(b/297245662): Investigate and unskip the test.
337
+ xit ( 'reauthenticate throws for wrong user' , async ( ) => {
331
338
// Sign in using pre-poulated user
332
339
await driver . callNoWait ( RedirectFunction . IDP_REDIRECT ) ;
333
340
@@ -350,7 +357,9 @@ browserDescribe('WebDriver redirect IdP test', driver => {
350
357
) ;
351
358
} ) ;
352
359
353
- it ( 'handles aborted sign ins' , async ( ) => {
360
+ // Test is ignored for now as it fails on Chrome version 111+.
361
+ // TODO(b/297245662): Investigate and unskip the test.
362
+ xit ( 'handles aborted sign ins' , async ( ) => {
354
363
await driver . callNoWait ( RedirectFunction . IDP_REDIRECT ) ;
355
364
const widget = new IdPPage ( driver . webDriver ) ;
356
365
0 commit comments