Skip to content

Commit

Permalink
Wait before and log button
Browse files Browse the repository at this point in the history
  • Loading branch information
felipeelia committed Aug 8, 2024
1 parent 05bd1f3 commit 5742c21
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/cypress/integration/features/woocommerce.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,12 @@ describe('WooCommerce Feature', { tags: '@slow' }, () => {
if (wcVersion === '6.4.0') {
cy.get('#place_order').click();
} else {
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(2000);
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);
});
cy.get('.wc-block-components-checkout-place-order-button').click();
// eslint-disable-next-line cypress/no-unnecessary-waiting
cy.wait(5000);
}
Expand Down

0 comments on commit 5742c21

Please sign in to comment.