Merge pull request #29743 from woocommerce/fix/calculate-shipping-flakiness

Logout merchant and clear the cart before running tests
This commit is contained in:
Ron Rennick 2021-04-26 10:23:45 -03:00 committed by GitHub
commit b1c6337c49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -61,6 +61,8 @@ const runCartCalculateShippingTest = () => {
await page.select('select[name="add_method_id"]', 'local_pickup');
await page.click('button#btn-ok');
await page.waitForSelector('#zone_locations');
await merchant.logout();
await shopper.emptyCart();
});
it('allows customer to calculate Free Shipping if in Germany', async () => {