Update API call for zip code

This commit is contained in:
Greg 2021-08-30 15:01:59 -06:00
parent 494ff2c8de
commit 4eaf1e1710
1 changed files with 5 additions and 1 deletions

View File

@ -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);