Commit 64d3c26a131 for woocommerce

commit 64d3c26a1318b4320af94b414a90c040770a0701
Author: Adrian Moldovan <3854374+adimoldovan@users.noreply.github.com>
Date:   Tue Nov 17 12:00:50 2026 +0200

    Run 2 guest checkout form Blocks e2e tests in parallel (#71018)

diff --git a/plugins/woocommerce/changelog/dev-testops-324-blocks-e2e-parallel-global-settings b/plugins/woocommerce/changelog/dev-testops-324-blocks-e2e-parallel-global-settings
new file mode 100644
index 00000000000..d7c2c6de4bf
--- /dev/null
+++ b/plugins/woocommerce/changelog/dev-testops-324-blocks-e2e-parallel-global-settings
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Run 2 guest checkout form Blocks e2e tests in parallel and document why 6 specs stay serial; tests only.
diff --git a/plugins/woocommerce/tests/e2e/playwright.config.ts b/plugins/woocommerce/tests/e2e/playwright.config.ts
index 8f44134614f..fa17b21e377 100644
--- a/plugins/woocommerce/tests/e2e/playwright.config.ts
+++ b/plugins/woocommerce/tests/e2e/playwright.config.ts
@@ -223,14 +223,29 @@ const blocksSerialSpecs = [
 	'**/tests/blocks/product-collection/product-picker.block_theme.spec.ts',
 	'**/tests/blocks/product-collection/register-product-collection.block_theme.spec.ts',

-	// Change global settings that cart, checkout and storefront specs read:
-	// shipping, taxes, local pickup, account creation, site language, the shop
-	// page slug and feature flags.
+	// Change global settings that cart, checkout and storefront specs read.
+
+	// Adds, edits and deletes shipping zones and methods, and changes the
+	// default customer location, local pickup and "Hide shipping costs until an
+	// address is entered".
 	'**/tests/blocks/cart/cart-checkout-block-shipping.block_theme.spec.ts',
+	// Turns tax calculation off and on and adds a standard tax rate, which
+	// changes the prices every cart and checkout spec shows.
 	'**/tests/blocks/cart/cart-checkout-block-taxes.shopper.block_theme.spec.ts',
+	// Switches the site language, which every spec reads.
 	'**/tests/blocks/cart/cart-checkout-block-translations.shopper.block_theme.spec.ts',
+	// Changes local pickup, shipping methods, "Hide shipping costs until an
+	// address is entered" and the countries the store ships to, and saves the
+	// Checkout page template. Most tests also place orders, some for Beanie,
+	// which changes the Best Sellers ranking.
 	'**/tests/blocks/checkout/checkout-block.shopper.block_theme.spec.ts',
+	// Logs out the admin user that all workers share. Also changes local pickup,
+	// account creation settings and the `experimental-blocks` feature flag,
+	// activates a test plugin, places orders for Beanie and opens the newest
+	// order in the orders list.
 	'**/tests/blocks/checkout/order-confirmation.block_theme.spec.ts',
+	// Changes the shop page slug, so the `shop/` URL that other specs visit
+	// stops working.
 	'**/tests/blocks/templates/shop-page.block_theme.spec.ts',

 	// Place orders, which change the Best Sellers ranking. Some also add to the
diff --git a/plugins/woocommerce/tests/e2e/tests/blocks/checkout/checkout-block-form.guest-shopper.block_theme.spec.ts b/plugins/woocommerce/tests/e2e/tests/blocks/checkout/checkout-block-form.guest-shopper.block_theme.spec.ts
new file mode 100644
index 00000000000..7fe11735cc6
--- /dev/null
+++ b/plugins/woocommerce/tests/e2e/tests/blocks/checkout/checkout-block-form.guest-shopper.block_theme.spec.ts
@@ -0,0 +1,143 @@
+/**
+ * External dependencies
+ */
+import { expect, test as base, guestFile } from '@woocommerce/e2e-utils';
+
+/**
+ * Internal dependencies
+ */
+import { SIMPLE_PHYSICAL_PRODUCT_NAME } from './constants';
+import { CheckoutPage } from './checkout.page';
+
+const test = base.extend< { checkoutPageObject: CheckoutPage } >( {
+	checkoutPageObject: async ( { page, requestUtils }, use ) => {
+		const pageObject = new CheckoutPage( {
+			page,
+			requestUtils,
+		} );
+		await use( pageObject );
+	},
+} );
+
+test.describe( 'Shopper → Checkout Form Errors (guest user)', () => {
+	test.use( { storageState: guestFile } );
+
+	test( 'can see errors when form is incomplete', async ( {
+		frontendUtils,
+		page,
+	} ) => {
+		await frontendUtils.goToShop();
+		await frontendUtils.addToCart( SIMPLE_PHYSICAL_PRODUCT_NAME );
+		await frontendUtils.goToCheckout();
+
+		await page.getByLabel( 'Email address' ).clear();
+		// Notices on the email field will move content when the field loses focus. This can cause the click to "miss".
+		await page.getByRole( 'button', { name: 'Place order' } ).focus();
+		await page.getByRole( 'button', { name: 'Place order' } ).click();
+
+		// Verify that all required fields show the correct warning.
+		await expect(
+			page.getByText( 'Please enter a valid email address' )
+		).toBeVisible();
+		await expect(
+			page.getByText( 'Please enter a valid first name' )
+		).toBeVisible();
+		await expect(
+			page.getByText( 'Please enter a valid last name' )
+		).toBeVisible();
+		await expect(
+			page.getByText( 'Please enter a valid address' )
+		).toBeVisible();
+		await expect(
+			page.getByText( 'Please enter a valid city' )
+		).toBeVisible();
+		await expect(
+			page.getByText( 'Please enter a valid zip code' )
+		).toBeVisible();
+	} );
+} );
+
+test.describe( 'Shopper → Billing Address Form (guest user)', () => {
+	test.use( { storageState: guestFile } );
+
+	test( 'Ensure billing is empty and shipping address is filled', async ( {
+		frontendUtils,
+		page,
+		checkoutPageObject,
+	} ) => {
+		await frontendUtils.goToShop();
+		await frontendUtils.addToCart( SIMPLE_PHYSICAL_PRODUCT_NAME );
+		await frontendUtils.goToCheckout();
+
+		await checkoutPageObject.fillShippingDetails( {
+			firstname: 'John',
+			lastname: 'Doe',
+			addressfirstline: '123 Easy Street',
+			addresssecondline: 'Testville',
+			country: 'United States (US)',
+			countryKey: 'US',
+			city: 'New York',
+			state: 'New York',
+			postcode: '90210',
+			phone: '01234567890',
+		} );
+
+		const shippingForm = page.getByRole( 'group', {
+			name: 'Shipping address',
+		} );
+
+		await page.getByLabel( 'Use same address for billing' ).uncheck();
+
+		await expect( shippingForm.getByLabel( 'First name' ) ).toHaveValue(
+			'John'
+		);
+		await expect( shippingForm.getByLabel( 'Last name' ) ).toHaveValue(
+			'Doe'
+		);
+		await expect(
+			shippingForm.getByLabel( 'Address', { exact: true } )
+		).toHaveValue( '123 Easy Street' );
+		await expect(
+			shippingForm.getByLabel( 'Apartment, suite, etc. (optional)' )
+		).toHaveValue( 'Testville' );
+		await expect( shippingForm.getByLabel( 'Country/Region' ) ).toHaveValue(
+			'US'
+		);
+		await expect( shippingForm.getByLabel( 'City' ) ).toHaveValue(
+			'New York'
+		);
+		await expect( shippingForm.getByLabel( 'State' ) ).toHaveValue( 'NY' );
+		await expect( shippingForm.getByLabel( 'ZIP Code' ) ).toHaveValue(
+			'90210'
+		);
+		await expect(
+			shippingForm.getByLabel( 'Phone (optional)' )
+		).toHaveValue( '01234567890' );
+
+		const billingForm = page.getByRole( 'group', {
+			name: 'Billing address',
+		} );
+
+		await expect( billingForm.getByLabel( 'First name' ) ).toHaveValue(
+			''
+		);
+		await expect( billingForm.getByLabel( 'Last name' ) ).toHaveValue( '' );
+		await expect(
+			billingForm.getByLabel( 'Address', { exact: true } )
+		).toHaveValue( '' );
+		await expect(
+			billingForm.getByRole( 'button', {
+				name: '+ Add apartment, suite, etc.',
+			} )
+		).toBeVisible();
+		await expect( billingForm.getByLabel( 'Country/Region' ) ).toHaveValue(
+			'US'
+		);
+		await expect( billingForm.getByLabel( 'City' ) ).toHaveValue( '' );
+		await expect( billingForm.getByLabel( 'State' ) ).toHaveValue( 'NY' );
+		await expect( billingForm.getByLabel( 'ZIP Code' ) ).toHaveValue( '' );
+		await expect(
+			billingForm.getByLabel( 'Phone (optional)' )
+		).toHaveValue( '' );
+	} );
+} );
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 da700957ea9..b980cdba333 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
@@ -589,44 +589,6 @@ test.describe( 'Shopper → Place Virtual Order', () => {
 	} );
 } );

-test.describe( 'Shopper → Checkout Form Errors (guest user)', () => {
-	test.use( { storageState: guestFile } );
-
-	test( 'can see errors when form is incomplete', async ( {
-		frontendUtils,
-		page,
-	} ) => {
-		await frontendUtils.goToShop();
-		await frontendUtils.addToCart( SIMPLE_PHYSICAL_PRODUCT_NAME );
-		await frontendUtils.goToCheckout();
-
-		await page.getByLabel( 'Email address' ).clear();
-		// Notices on the email field will move content when the field loses focus. This can cause the click to "miss".
-		await page.getByRole( 'button', { name: 'Place order' } ).focus();
-		await page.getByRole( 'button', { name: 'Place order' } ).click();
-
-		// Verify that all required fields show the correct warning.
-		await expect(
-			page.getByText( 'Please enter a valid email address' )
-		).toBeVisible();
-		await expect(
-			page.getByText( 'Please enter a valid first name' )
-		).toBeVisible();
-		await expect(
-			page.getByText( 'Please enter a valid last name' )
-		).toBeVisible();
-		await expect(
-			page.getByText( 'Please enter a valid address' )
-		).toBeVisible();
-		await expect(
-			page.getByText( 'Please enter a valid city' )
-		).toBeVisible();
-		await expect(
-			page.getByText( 'Please enter a valid zip code' )
-		).toBeVisible();
-	} );
-} );
-
 test.describe( 'Billing Address Form', () => {
 	const blockSelectorInEditor = blockData.selectors.editor.block as string;

@@ -655,97 +617,4 @@ test.describe( 'Billing Address Form', () => {

 		await editor.saveSiteEditorEntities();
 	} );
-
-	test.describe( 'Guest user', () => {
-		test.use( { storageState: guestFile } );
-
-		test( 'Ensure billing is empty and shipping address is filled', async ( {
-			frontendUtils,
-			page,
-			checkoutPageObject,
-		} ) => {
-			await frontendUtils.goToShop();
-			await frontendUtils.addToCart( SIMPLE_PHYSICAL_PRODUCT_NAME );
-			await frontendUtils.goToCheckout();
-
-			await checkoutPageObject.fillShippingDetails( {
-				firstname: 'John',
-				lastname: 'Doe',
-				addressfirstline: '123 Easy Street',
-				addresssecondline: 'Testville',
-				country: 'United States (US)',
-				countryKey: 'US',
-				city: 'New York',
-				state: 'New York',
-				postcode: '90210',
-				phone: '01234567890',
-			} );
-
-			const shippingForm = page.getByRole( 'group', {
-				name: 'Shipping address',
-			} );
-
-			await page.getByLabel( 'Use same address for billing' ).uncheck();
-
-			await expect( shippingForm.getByLabel( 'First name' ) ).toHaveValue(
-				'John'
-			);
-			await expect( shippingForm.getByLabel( 'Last name' ) ).toHaveValue(
-				'Doe'
-			);
-			await expect(
-				shippingForm.getByLabel( 'Address', { exact: true } )
-			).toHaveValue( '123 Easy Street' );
-			await expect(
-				shippingForm.getByLabel( 'Apartment, suite, etc. (optional)' )
-			).toHaveValue( 'Testville' );
-			await expect(
-				shippingForm.getByLabel( 'Country/Region' )
-			).toHaveValue( 'US' );
-			await expect( shippingForm.getByLabel( 'City' ) ).toHaveValue(
-				'New York'
-			);
-			await expect( shippingForm.getByLabel( 'State' ) ).toHaveValue(
-				'NY'
-			);
-			await expect( shippingForm.getByLabel( 'ZIP Code' ) ).toHaveValue(
-				'90210'
-			);
-			await expect(
-				shippingForm.getByLabel( 'Phone (optional)' )
-			).toHaveValue( '01234567890' );
-
-			const billingForm = page.getByRole( 'group', {
-				name: 'Billing address',
-			} );
-
-			await expect( billingForm.getByLabel( 'First name' ) ).toHaveValue(
-				''
-			);
-			await expect( billingForm.getByLabel( 'Last name' ) ).toHaveValue(
-				''
-			);
-			await expect(
-				billingForm.getByLabel( 'Address', { exact: true } )
-			).toHaveValue( '' );
-			await expect(
-				billingForm.getByRole( 'button', {
-					name: '+ Add apartment, suite, etc.',
-				} )
-			).toBeVisible();
-			await expect(
-				billingForm.getByLabel( 'Country/Region' )
-			).toHaveValue( 'US' );
-			await expect( billingForm.getByLabel( 'City' ) ).toHaveValue( '' );
-			await expect( billingForm.getByLabel( 'State' ) ).toHaveValue(
-				'NY'
-			);
-			await expect( billingForm.getByLabel( 'ZIP Code' ) ).toHaveValue(
-				''
-			);
-			await expect(
-				billingForm.getByLabel( 'Phone (optional)' )
-			).toHaveValue( '' );
-		} );
-	} );
 } );