Skip to content

Commit

Permalink
Wait for the api call
Browse files Browse the repository at this point in the history
  • Loading branch information
felipeelia committed Aug 8, 2024
1 parent 53e9f47 commit a46d9a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/cypress/integration/features/woocommerce.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ describe('WooCommerce Feature', { tags: '@slow' }, () => {
if (wcVersion === '6.4.0') {
cy.get('#place_order').click();
} else {
cy.intercept('/wp-json/wc/store/v1/checkout*').as('apiRequest');
cy.get('.wc-block-components-checkout-place-order-button').click();
cy.wait('@apiRequest');
}
});

Expand Down

0 comments on commit a46d9a2

Please sign in to comment.