Skip to content

Commit

Permalink
Use waitForURL after redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkamp committed Aug 3, 2023
1 parent 165e370 commit f0ffddd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/e2e/specs/setup-mc/step-1-accounts.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ test.describe( 'Merchant who is getting started', () => {
await page.waitForLoadState( 'networkidle' );

// Expect the user to be redirected
expect( page.url() ).toEqual( baseURL + 'auth_url' );
await page.waitForURL( baseURL + 'auth_url' );
} );
} );

Expand Down Expand Up @@ -132,6 +132,6 @@ test.describe( 'Merchant with Jetpack connected & Google not connected', () => {
await page.waitForLoadState( 'networkidle' );

// Expect the user to be redirected
expect( page.url() ).toEqual( baseURL + 'google_auth' );
await page.waitForURL( baseURL + 'google_auth' );
} );
} );

0 comments on commit f0ffddd

Please sign in to comment.