diff --git a/cypress.config.js b/cypress.config.js index ea2e6c99b..596a6353b 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -53,13 +53,17 @@ module.exports = defineConfig( { } } - // Exclude Onboarding and ecommerce tests for WordPress lower than 6.5 (6.4 or 6.3) or PHP lower than 7.4 (7.1, 7.2 and 7.3) - if ( semver.satisfies( config.env.wpSemverVersion, '<6.5.0' ) || semver.satisfies( config.env.phpSemverVersion, '<7.4.0' )) { + // Exclude tests for WordPress lower than 6.5 (6.4 or 6.3) or PHP lower than 7.4 (7.1, 7.2 and 7.3) + if ( + semver.satisfies( config.env.wpSemverVersion, '<6.5.0' ) || + semver.satisfies( config.env.phpSemverVersion, '<7.4.0' ) + ) { config.excludeSpecPattern = config.excludeSpecPattern.concat( [ 'vendor/newfold-labs/wp-module-ecommerce/tests/cypress/integration/Site-Capabilities/**', 'vendor/newfold-labs/wp-module-ecommerce/tests/cypress/integration/Home/homePageWithWoo.cy.js', 'vendor/newfold-labs/wp-module-ecommerce/tests/cypress/integration/Home/ecommerce-next-steps.cy.js', // Skip this since Onboarding does not support this version - 'vendor/newfold-labs/wp-module-onboarding/tests/cypress/integration/**' // Onboarding requires WP 6.5 or greater, as it uses the Wonder Theme which has the same requirement + 'vendor/newfold-labs/wp-module-onboarding/tests/cypress/integration/**', // Onboarding requires WP 6.5 or greater, as it uses the Wonder Theme which has the same requirement + 'vendor/newfold-labs/wp-module-coming-soon/cypress/integration/coming-soon-woo.cy.js', // woo is required and is not supported in older WP or PHP ] ); }