From fcf200e6fc2176687a8c8adf14ec816880857fb6 Mon Sep 17 00:00:00 2001 From: Saad Tarhi Date: Thu, 1 Jun 2023 13:01:36 +0100 Subject: [PATCH] Fix local pickup e2e test (#9643) Co-authored-by: Niels Lange --- tests/e2e/specs/shopper/cart-checkout/checkout.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/specs/shopper/cart-checkout/checkout.test.js b/tests/e2e/specs/shopper/cart-checkout/checkout.test.js index 5cc994c6c30..4abf06b4ae5 100644 --- a/tests/e2e/specs/shopper/cart-checkout/checkout.test.js +++ b/tests/e2e/specs/shopper/cart-checkout/checkout.test.js @@ -130,7 +130,7 @@ describe( 'Shopper → Checkout', () => { * but cannot be reproduced manually. */ // eslint-disable-next-line jest/no-disabled-tests - it.skip( 'Switching between local pickup and shipping does not affect the address', async () => { + it( 'Switching between local pickup and shipping does not affect the address', async () => { await shopper.block.emptyCart(); await shopper.block.goToShop(); await shopper.addToCartFromShopPage( SIMPLE_PHYSICAL_PRODUCT_NAME ); @@ -157,7 +157,7 @@ describe( 'Shopper → Checkout', () => { ); await page.waitForXPath( - `//div[contains(@class, "wc-block-components-totals-item__description")][contains(text(), "${ NORMAL_SHIPPING_NAME }")]` + `//span[contains(@class, "wc-block-components-radio-control__label")][contains(text(), "${ NORMAL_SHIPPING_NAME }")]` ); const enteredEmail = await page.evaluate( () => {