From 6bd1ab71f8c3236705359a84c314c87fa6a05f0f Mon Sep 17 00:00:00 2001 From: wpalani Date: Tue, 3 Sep 2024 18:21:52 -0700 Subject: [PATCH] Skip WonderBlocks tests on WP versions older than 6.6 --- cypress.config.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cypress.config.js b/cypress.config.js index 84f28f8a1..52420b2f7 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -63,6 +63,13 @@ module.exports = defineConfig( { ] ); } + // Exclude WonderBlocks tests for WordPress lower than 6.6 (6.5 or 6.4) + if ( semver.satisfies( config.env.wpSemverVersion, '<6.6.0' ) ) { + config.excludeSpecPattern = config.excludeSpecPattern.concat( [ + 'vendor/newfold-labs/wp-module-wonderblocks/tests/cypress/integration/**', + ] ); + } + return config; }, baseUrl: 'http://localhost:8882',