Add missing jest/global

This commit is contained in:
Veljko 2021-04-08 15:09:59 +02:00
parent 7a1ba36fc9
commit 4fed8f8dab
2 changed files with 10 additions and 0 deletions

View File

@ -13,6 +13,15 @@ const {
selectOptionInSelect2,
} = require( '@woocommerce/e2e-utils' );
/**
* External dependencies
*/
const {
it,
describe,
beforeAll,
} = require( '@jest/globals' );
const config = require( 'config' );
const firstProductPrice = config.has( 'products.simple.price' ) ? config.get( 'products.simple.price' ) : '9.99';
const secondProductPrice = '4.99';

View File

@ -544,6 +544,7 @@ const deleteAllEmailLogs = async () => {
*/
const deleteAllShippingZones = async () => {
await merchant.openSettings('shipping');
// Delete existing shipping zones.
try {
let zone = await page.$( '.wc-shipping-zone-delete' );