diff --git a/tests/e2e/core-tests/specs/shopper/front-end-checkout.test.js b/tests/e2e/core-tests/specs/shopper/front-end-checkout.test.js index 05c5f0df796..6de69339767 100644 --- a/tests/e2e/core-tests/specs/shopper/front-end-checkout.test.js +++ b/tests/e2e/core-tests/specs/shopper/front-end-checkout.test.js @@ -29,7 +29,7 @@ const runCheckoutPageTest = () => { await withRestApi.resetSettingsGroupToDefault('tax'); // Set free shipping within California - await withRestApi.addShippingZoneAndMethod('Free Shipping CA', 'state:US:CA', ' ', 'free_shipping'); + await withRestApi.addShippingZoneAndMethod('Free Shipping CA', 'state:US:CA', '', 'free_shipping'); // Set base location with state CA. await withRestApi.updateSettingOption( 'general', 'woocommerce_default_country', { value: 'US:CA' } ); @@ -48,6 +48,10 @@ const runCheckoutPageTest = () => { await withRestApi.updatePaymentGateway( 'cod', { enabled: true } ); }); + afterAll(async () => { + await withRestApi.deleteAllShippingZones(); + }); + it('should display cart items in order review', async () => { await shopper.goToShop(); await shopper.addToCartFromShopPage(simpleProductName);