Make test more granular

This commit is contained in:
Veljko 2021-04-08 11:44:54 +02:00
parent 6574db5c2c
commit b195e354a2
1 changed files with 3 additions and 0 deletions

View File

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