Skip to content

Commit 9f2b888

Browse files
re-add wait to login page
1 parent c66621f commit 9f2b888

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.dev/tests/cypress/helpers.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ export function addFormChild( name ) {
3636
export function loginToSite() {
3737
return goTo( '/wp-login.php', true )
3838
.then( () => {
39+
// Arbitrary wait to ensure the login form is ready in CI
40+
cy.wait( 1000 );
3941
// Wait for login form to be ready
4042
cy.get( '#user_login' ).type( Cypress.env( 'wpUsername' ) );
4143
cy.get( '#user_pass' ).type( Cypress.env( 'wpPassword' ) );

0 commit comments

Comments
 (0)