From 00d60365150b5f6e99b57ea224972be5ad46428b Mon Sep 17 00:00:00 2001 From: Felipe Elia Date: Thu, 8 Aug 2024 17:21:52 -0300 Subject: [PATCH] Simply wait before clicking on the button --- tests/cypress/integration/features/woocommerce.cy.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/cypress/integration/features/woocommerce.cy.js b/tests/cypress/integration/features/woocommerce.cy.js index 72ce2496c..184056684 100644 --- a/tests/cypress/integration/features/woocommerce.cy.js +++ b/tests/cypress/integration/features/woocommerce.cy.js @@ -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); } });