Skip to content

Commit

Permalink
Merge pull request #961 from sangeetha-nayak/siteCapabilities_tests_skip
Browse files Browse the repository at this point in the history
Skip siteCapabilities tests for PHP version less than 7.4, wc installation is not supported.
  • Loading branch information
wpscholar authored Feb 28, 2024
2 parents bcbbe12 + 3e5e5b0 commit 53d3491
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ 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/**'
] );
}

return config;
},
baseUrl: 'http://localhost:8882',
Expand Down

0 comments on commit 53d3491

Please sign in to comment.