Reduce flakiness on E2E setup (#37410)
* Reduce flakiness on test setup * Add changelog * Go to wp-admin
This commit is contained in:
parent
f3366e7dd9
commit
ebafecea0f
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: dev
|
||||
|
||||
Reduce flakiness on E2E test setup.
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue