Commit 1d2bb7a0d18 for woocommerce
commit 1d2bb7a0d1898bb19a6db641523273b8a7fc6127
Author: Raluca Stan <ralucastn@gmail.com>
Date: Thu Jul 23 11:27:08 2026 -0400
Unskip checkout E2E tests skipped for the WordPress 7.1 regression (#66872)
test(e2e): unskip checkout tests skipped for the WordPress 7.1 regression
The upstream Site Editor regression that broke these Checkout E2E tests on
WordPress 7.1 was fixed in WordPress/gutenberg#80026, which merged on
2026-07-16 and was cherry-picked to the wp/7.1 branch on 2026-07-20.
Revert the temporary skips added in #66794 so the tests run again against
the WordPress 7.1 prerelease. This is a draft to check whether the fix
holds across the Checkout coverage on the current prerelease build.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
diff --git a/plugins/woocommerce/tests/e2e/tests/blocks/checkout/checkout-block.merchant.block_theme.spec.ts b/plugins/woocommerce/tests/e2e/tests/blocks/checkout/checkout-block.merchant.block_theme.spec.ts
index db674c61ef7..dcb7aaee331 100644
--- a/plugins/woocommerce/tests/e2e/tests/blocks/checkout/checkout-block.merchant.block_theme.spec.ts
+++ b/plugins/woocommerce/tests/e2e/tests/blocks/checkout/checkout-block.merchant.block_theme.spec.ts
@@ -37,16 +37,6 @@ const blockData: BlockData = {
},
};
-const testsFailingOnWordPress71 = new Set( [
- 'renders without crashing and can only be inserted once',
- 'Merchant can see T&S and Privacy Policy links with checkbox',
- 'can enable dark mode inputs',
- 'Company input visibility and optional and required can be toggled',
- 'Apartment input visibility and optional and required can be toggled',
- 'Phone input visibility and optional and required can be toggled',
- 'Return to cart link is visible and can be toggled',
-] );
-
const test = base.extend< { checkoutPageObject: CheckoutPage } >( {
checkoutPageObject: async ( { page }, use ) => {
const pageObject = new CheckoutPage( {
@@ -60,14 +50,7 @@ test.describe( 'Merchant → Checkout', () => {
// `as string` is safe here because we know the variable is a string, it is defined above.
const blockSelectorInEditor = blockData.selectors.editor.block as string;
- test.beforeEach( async ( { admin, editor, wpCoreVersion }, testInfo ) => {
- test.skip(
- wpCoreVersion === 7.1 &&
- testsFailingOnWordPress71.has( testInfo.title ),
- 'Currently broken with WordPress 7.1 beta 1 and requires upstream patch. ' +
- 'See: https://github.com/WordPress/gutenberg/pull/80026#issuecomment-5003222851'
- );
-
+ test.beforeEach( async ( { admin, editor } ) => {
await admin.visitSiteEditor( {
postId: `${ BLOCK_THEME_SLUG }//page-checkout`,
postType: 'wp_template',
diff --git a/plugins/woocommerce/tests/e2e/tests/blocks/checkout/checkout-block.shopper.block_theme.spec.ts b/plugins/woocommerce/tests/e2e/tests/blocks/checkout/checkout-block.shopper.block_theme.spec.ts
index 520aadf9b79..da700957ea9 100644
--- a/plugins/woocommerce/tests/e2e/tests/blocks/checkout/checkout-block.shopper.block_theme.spec.ts
+++ b/plugins/woocommerce/tests/e2e/tests/blocks/checkout/checkout-block.shopper.block_theme.spec.ts
@@ -324,13 +324,7 @@ test.describe( 'Shopper → Shipping and Billing Addresses', () => {
// `as string` is safe here because we know the variable is a string, it is defined above.
const blockSelectorInEditor = blockData.selectors.editor.block as string;
- test.beforeEach( async ( { admin, editor, page, wpCoreVersion } ) => {
- test.skip(
- wpCoreVersion === 7.1,
- 'Currently broken with WordPress 7.1 beta 1 and requires upstream patch. ' +
- 'See: https://github.com/WordPress/gutenberg/pull/80026#issuecomment-5003222851'
- );
-
+ test.beforeEach( async ( { admin, editor, page } ) => {
await admin.visitSiteEditor( {
postId: `${ BLOCK_THEME_SLUG }//page-checkout`,
postType: 'wp_template',
@@ -636,18 +630,7 @@ test.describe( 'Shopper → Checkout Form Errors (guest user)', () => {
test.describe( 'Billing Address Form', () => {
const blockSelectorInEditor = blockData.selectors.editor.block as string;
- test( 'Enable company field', async ( {
- page,
- admin,
- editor,
- wpCoreVersion,
- } ) => {
- test.skip(
- wpCoreVersion === 7.1,
- 'Currently broken with WordPress 7.1 beta 1 and requires upstream patch. ' +
- 'See: https://github.com/WordPress/gutenberg/pull/80026#issuecomment-5003222851'
- );
-
+ test( 'Enable company field', async ( { page, admin, editor } ) => {
await admin.visitSiteEditor( {
postId: `${ BLOCK_THEME_SLUG }//page-checkout`,
postType: 'wp_template',
diff --git a/plugins/woocommerce/tests/e2e/tests/blocks/templates/checkout-template.block_theme.spec.ts b/plugins/woocommerce/tests/e2e/tests/blocks/templates/checkout-template.block_theme.spec.ts
index 81be9a53efc..a3bb0602db0 100644
--- a/plugins/woocommerce/tests/e2e/tests/blocks/templates/checkout-template.block_theme.spec.ts
+++ b/plugins/woocommerce/tests/e2e/tests/blocks/templates/checkout-template.block_theme.spec.ts
@@ -10,14 +10,7 @@ test.describe( 'Test the checkout template', () => {
test( 'Template can be opened in the site editor', async ( {
admin,
editor,
- wpCoreVersion,
} ) => {
- test.skip(
- wpCoreVersion === 7.1,
- 'Currently broken with WordPress 7.1 beta 1 and requires upstream patch. ' +
- 'See: https://github.com/WordPress/gutenberg/pull/80026#issuecomment-5003222851'
- );
-
await admin.visitSiteEditor( {
postId: templatePath,
postType: templateType,