Update API call for zip code
This commit is contained in:
parent
494ff2c8de
commit
4eaf1e1710
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue