From 38a54a8b1cf318f296b273fa49f9556b83fcc891 Mon Sep 17 00:00:00 2001 From: sangeetha-nayak Date: Tue, 12 Mar 2024 18:45:17 +0530 Subject: [PATCH] Skip tests with woocommerce installation for wordpress version <6.3 and php version <7.4 --- cypress.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cypress.config.js b/cypress.config.js index c46a69944..149562df4 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -56,7 +56,8 @@ module.exports = defineConfig( { // Exclude ecommerce tests for WordPress lower than 6.3 (6.2) or PHP lower than 7.4 (7.1, 7.2 and 7.3) if ( semver.satisfies( config.env.wpSemverVersion, '<6.3.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/Site-Capabilities/**', + 'vendor/newfold-labs/wp-module-ecommerce/tests/cypress/integration/Home/homePageWithWoo.cy.js' ] ); }