Skip to content

Commit

Permalink
Simply wait before clicking on the button
Browse files Browse the repository at this point in the history
  • Loading branch information
felipeelia committed Aug 8, 2024
1 parent 5742c21 commit 00d6036
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests/cypress/integration/features/woocommerce.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,8 @@ describe('WooCommerce Feature', { tags: '@slow' }, () => {
cy.get('#place_order').click();
} else {
// eslint-disable-next-line cypress/no-unnecessary-waiting
cy.wait(2000);
cy.wait(1000);
cy.get('.wc-block-components-checkout-place-order-button').click();
cy.get('.wc-block-components-checkout-place-order-button').then(($el) => {
cy.log($el[0].outerHTML);
});
// eslint-disable-next-line cypress/no-unnecessary-waiting
cy.wait(5000);
}
});

Expand Down

0 comments on commit 00d6036

Please sign in to comment.