Commit 16fdd3a3611 for woocommerce

commit 16fdd3a3611374ccb446454d473d536148ee79df
Author: Karol Manijak <20098064+kmanijak@users.noreply.github.com>
Date:   Mon Jul 20 16:08:10 2026 +0200

    Temporarily skip checkout E2E tests on WordPress 7.1 (#66794)

    Skip checkout E2E tests on WordPress 7.1

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 dcb7aaee331..db674c61ef7 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,6 +37,16 @@ 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( {
@@ -50,7 +60,14 @@ 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 } ) => {
+	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'
+		);
+
 		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 44b3ffaef39..88eef0a2b38 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
@@ -347,7 +347,13 @@ 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 } ) => {
+	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'
+		);
+
 		await admin.visitSiteEditor( {
 			postId: `${ BLOCK_THEME_SLUG }//page-checkout`,
 			postType: 'wp_template',
@@ -653,7 +659,18 @@ 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 } ) => {
+	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'
+		);
+
 		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 a3bb0602db0..81be9a53efc 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,7 +10,14 @@ 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,