From 53e9f4734ac92bf36a2a0cdddaddf7913acfed7a Mon Sep 17 00:00:00 2001 From: Felipe Elia Date: Thu, 8 Aug 2024 13:40:22 -0300 Subject: [PATCH] Update WooCommerce selector --- tests/cypress/integration/features/woocommerce.cy.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/cypress/integration/features/woocommerce.cy.js b/tests/cypress/integration/features/woocommerce.cy.js index 4e02d71bf..94d1968ef 100644 --- a/tests/cypress/integration/features/woocommerce.cy.js +++ b/tests/cypress/integration/features/woocommerce.cy.js @@ -147,7 +147,10 @@ describe('WooCommerce Feature', { tags: '@slow' }, () => { // enable payment gateway. cy.visitAdminPage('admin.php?page=wc-settings&tab=checkout§ion=cod'); cy.get('#woocommerce_cod_enabled').check(); - cy.get('.button-primary.woocommerce-save-button').click(); + cy.get( + `.button-primary.woocommerce-save-button, + .components-button.is-primary.woocommerce-save-button`, + ).click(); cy.logout();