From b195e354a22ad8aa4c4a53f281df7749728507f8 Mon Sep 17 00:00:00 2001 From: Veljko Date: Thu, 8 Apr 2021 11:44:54 +0200 Subject: [PATCH] Make test more granular --- .../specs/shopper/front-end-cart-calculate-shipping.test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/e2e/core-tests/specs/shopper/front-end-cart-calculate-shipping.test.js b/tests/e2e/core-tests/specs/shopper/front-end-cart-calculate-shipping.test.js index f2885988bcf..f5fe1fcff2d 100644 --- a/tests/e2e/core-tests/specs/shopper/front-end-cart-calculate-shipping.test.js +++ b/tests/e2e/core-tests/specs/shopper/front-end-cart-calculate-shipping.test.js @@ -33,9 +33,12 @@ const runCartCalculateShippingTest = () => { beforeAll(async () => { await merchant.login(); await createSimpleProduct(firstProductName); + await merchant.openSettings('general'); await createSimpleProduct(secondProductName, secondProductPrice); await merchant.openSettings('shipping'); + }); + it('can remove the existing shippings if they are present', async () => { // Delete existing shipping zones. try { let zone = await page.$( '.wc-shipping-zone-delete' );