Fix flaky connect to Woo e2e test (#48926)

This commit is contained in:
Veljko V 2024-07-04 17:21:15 +02:00 committed by GitHub
parent cf7fc7b2a9
commit 59a1e5394b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: dev
E2E tests: Fix flaky connect to Woo.com test

View File

@ -450,13 +450,11 @@ test.describe( 'Store owner can skip the core profiler', () => {
await test.step( 'Check that we are sent to wp.com', async () => {
await expect( page.url() ).toContain( 'wordpress.com/log-in' );
// reload to avoid flaky blank page
await page.reload();
await expect(
page.getByRole( 'heading', {
name: 'Log in to your account',
} )
).toBeVisible();
).toBeVisible( { timeout: 30000 } );
} );
} );
} );