diff --git a/tests/e2e/tests/cart/cart-block.shopper.block_theme.side_effects.spec.ts b/tests/e2e/tests/cart/cart-block.shopper.block_theme.side_effects.spec.ts index 2a40826fb74..4cddd8db0c5 100644 --- a/tests/e2e/tests/cart/cart-block.shopper.block_theme.side_effects.spec.ts +++ b/tests/e2e/tests/cart/cart-block.shopper.block_theme.side_effects.spec.ts @@ -73,34 +73,9 @@ test.describe( 'Shopper → Cart block', () => { ); await frontendUtils.goToShop(); await frontendUtils.emptyCart(); - await frontendUtils.addToCart( DISCOUNTED_PRODUCT_NAME ); await frontendUtils.addToCart( REGULAR_PRICED_PRODUCT_NAME ); await frontendUtils.goToCart(); - // Ensure no discount label is present on the products in the cart - const capRow = await pageObject.findProductRow( - DISCOUNTED_PRODUCT_NAME - ); - await expect( capRow ).toBeVisible(); - const capRegularPriceElement = capRow.locator( - '.wc-block-components-product-price__regular' - ); - const capDiscountedPriceElement = capRow.locator( - '.wc-block-components-product-price__value.is-discounted' - ); - await expect( capRegularPriceElement ).toBeHidden(); - await expect( capDiscountedPriceElement ).toBeHidden(); - - // Locate the price element within the Cap product row - const capPriceElement = capRow?.locator( - '.wc-block-components-product-price__value' - ); - await expect( capPriceElement ).toBeVisible(); - - // Get the text content of the price element and check the price - const capPriceText = await capPriceElement.textContent(); - expect( capPriceText ).toBe( '$50.00' ); - const hoodieRow = await pageObject.findProductRow( REGULAR_PRICED_PRODUCT_NAME );