Commit 5e0be861d08 for woocommerce
commit 5e0be861d08391a4418a0ae9687c433f5d30faff
Author: David Arenas <david.arenas@automattic.com>
Date: Wed May 13 17:03:04 2026 +0200
Skip Add to Cart + Options variable products E2E step on WP 6.8 (#64852)
* Skip Add to Cart + Options variable products E2E step on WP 6.8
* Skip variable products test step for WordPress 6.8 due to a known bug
---------
Co-authored-by: Luigi Teschio <gigitux@gmail.com>
diff --git a/plugins/woocommerce/client/blocks/tests/e2e/tests/add-to-cart-with-options/add-to-cart-with-options.block_theme.spec.ts b/plugins/woocommerce/client/blocks/tests/e2e/tests/add-to-cart-with-options/add-to-cart-with-options.block_theme.spec.ts
index 9ed37b34eee..cad256f025c 100644
--- a/plugins/woocommerce/client/blocks/tests/e2e/tests/add-to-cart-with-options/add-to-cart-with-options.block_theme.spec.ts
+++ b/plugins/woocommerce/client/blocks/tests/e2e/tests/add-to-cart-with-options/add-to-cart-with-options.block_theme.spec.ts
@@ -854,6 +854,7 @@ test.describe( 'Add to Cart + Options Block', () => {
pageObject,
editor,
requestUtils,
+ wpCoreVersion,
} ) => {
await requestUtils.activatePlugin(
'woocommerce-blocks-test-quantity-constraints'
@@ -941,7 +942,13 @@ test.describe( 'Add to Cart + Options Block', () => {
} );
} );
- await test.step( 'in variable products', async () => {
+ await test.step( 'in variable products', async ( step ) => {
+ // eslint-disable-next-line playwright/no-skipped-test
+ step.skip(
+ wpCoreVersion === 6.8,
+ 'WordPress 6.8 contains a bug that affects this experimental block without an easy workaround.'
+ );
+
await page.goto( '/product/hoodie/' );
const quantityInput = page.getByRole( 'spinbutton', {