Reduce flakiness on E2E setup (#37410)

* Reduce flakiness on test setup

* Add changelog

* Go to wp-admin
This commit is contained in:
Lucas Bustamante 2023-03-23 13:40:31 -03:00 committed by GitHub
parent f3366e7dd9
commit ebafecea0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: dev
Reduce flakiness on E2E test setup.

View File

@ -60,6 +60,8 @@ module.exports = async ( config ) => {
await adminPage.fill( 'input[name="pwd"]', admin.password );
await adminPage.click( 'text=Log In' );
await adminPage.waitForLoadState( 'networkidle' );
await adminPage.goto( `/wp-admin` );
await adminPage.waitForLoadState( 'domcontentloaded' );
await expect( adminPage.locator( 'div.wrap > h1' ) ).toHaveText(
'Dashboard'