From 4eaf1e1710419db11d0814ed08c3c2fdcbf39516 Mon Sep 17 00:00:00 2001 From: Greg Date: Mon, 30 Aug 2021 15:01:59 -0600 Subject: [PATCH] Update API call for zip code --- .../e2e/core-tests/specs/shopper/front-end-checkout.test.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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);