Skip to content

Commit

Permalink
Fix tests; sign in more slowly
Browse files Browse the repository at this point in the history
  • Loading branch information
makotom committed Aug 2, 2024
1 parent de569d2 commit 95fc946
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Cypress.Commands.add('installWordpress', () => {

Cypress.Commands.add('signinToWordpress', () => {
cy.visit('/wp-admin');
cy.wait(1000);

cy.get('body').then(($body) => {
if (!$body.find('#loginform').length) {
Expand All @@ -60,6 +61,7 @@ Cypress.Commands.add('signinToWordpress', () => {
cy.get('#user_pass').should('be.visible').clear().type('deg1kaX7reme!');
cy.get('#wp-submit').should('be.visible').click();
});
cy.wait(1000);
});

Cypress.Commands.add('installWooCommerce', () => {
Expand Down

0 comments on commit 95fc946

Please sign in to comment.