Commit 3d1c4658602 for woocommerce

commit 3d1c46586027d91374579516d0358839df6d1872
Author: Luigi Teschio <gigitux@gmail.com>
Date:   Wed Oct 21 15:34:37 2026 +0200

    Remove unrelated Mini-Cart test from the Add to Cart suite (#70083)

    * Remove unrelated Mini-Cart test from Add to Cart suite

    * Add changelog entry for Add to Cart test cleanup

diff --git a/plugins/woocommerce/changelog/dev-remove-unrelated-mini-cart-e2e b/plugins/woocommerce/changelog/dev-remove-unrelated-mini-cart-e2e
new file mode 100644
index 00000000000..859f5e7561f
--- /dev/null
+++ b/plugins/woocommerce/changelog/dev-remove-unrelated-mini-cart-e2e
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Remove unrelated Mini-Cart coverage from the Add to Cart E2E suite; no production change.
diff --git a/plugins/woocommerce/tests/e2e/tests/cart/add-to-cart.spec.ts b/plugins/woocommerce/tests/e2e/tests/cart/add-to-cart.spec.ts
index 884ad1cc1b8..cf2de24fb1d 100644
--- a/plugins/woocommerce/tests/e2e/tests/cart/add-to-cart.spec.ts
+++ b/plugins/woocommerce/tests/e2e/tests/cart/add-to-cart.spec.ts
@@ -9,7 +9,7 @@ import {
 /**
  * Internal dependencies
  */
-import { tags, test, expect } from '../../fixtures/fixtures';
+import { tags, test } from '../../fixtures/fixtures';
 import { checkCartContentInBlocksCart } from '../../utils/cart';

 const productName = `Cart product test ${ Date.now() }`;
@@ -44,6 +44,7 @@ test.describe(
 			} );
 		} );

+		// eslint-disable-next-line playwright/expect-expect -- Assertions are made by checkCartContentInBlocksCart.
 		test(
 			'should add only one product to the cart with AJAX add to cart buttons disabled and "Geolocate (with page caching support)" as the default customer location',
 			{ tag: [ tags.COULD_BE_LOWER_LEVEL_TEST ] },
@@ -91,44 +92,5 @@ test.describe(
 				);
 			}
 		);
-
-		test(
-			'should be able to navigate and remove item from mini cart using keyboard',
-			{ tag: [ tags.COULD_BE_LOWER_LEVEL_TEST ] },
-			async ( { page } ) => {
-				await test.step( 'Add product to cart and open mini cart', async () => {
-					await addAProductToCart( page, productId );
-					const miniCartButton = page.locator(
-						'.wc-block-mini-cart__button'
-					);
-					await miniCartButton.click();
-					await expect(
-						page.locator( '.wc-block-mini-cart__drawer' )
-					).toBeVisible();
-				} );
-
-				await test.step( 'Verify and interact with remove button', async () => {
-					const removeButton = page.locator(
-						'.wc-block-cart-item__remove-link'
-					);
-					await expect( removeButton ).toBeVisible();
-					await removeButton.focus();
-					await page.keyboard.press( 'Space' );
-				} );
-
-				await test.step( 'Verify cart is empty', async () => {
-					await expect(
-						page.locator(
-							'.wc-block-mini-cart__empty-cart-wrapper'
-						)
-					).toBeVisible();
-					await expect(
-						page.locator(
-							'.wc-block-mini-cart__empty-cart-wrapper'
-						)
-					).toContainText( 'Your cart is empty' );
-				} );
-			}
-		);
 	}
 );