Skip to content

Commit

Permalink
Fix the issue that E2E test can't log in to wp-admin.
Browse files Browse the repository at this point in the history
  • Loading branch information
eason9487 committed Nov 11, 2024
1 parent 0383264 commit 1f90028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/e2e/global-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ module.exports = async ( config ) => {
await adminPage
.locator( 'input[name="pwd"]' )
.fill( admin.password );
await adminPage.locator( 'text=Log In' ).click();
await adminPage.getByRole( 'button', { name: 'Log In' } ).click();
await adminPage.waitForLoadState( LOAD_STATE.DOM_CONTENT_LOADED );
await adminPage.goto( `/wp-admin` );
await adminPage.waitForLoadState( LOAD_STATE.DOM_CONTENT_LOADED );
Expand Down

0 comments on commit 1f90028

Please sign in to comment.