Add deleting email logs if any

This commit is contained in:
Veljko 2021-04-15 14:01:28 +02:00
parent 950d08b7a5
commit 5c633e1c3b
1 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,7 @@
merchant,
createSimpleProduct,
uiUnblocked,
deleteAllEmailLogs,
} = require( '@woocommerce/e2e-utils' );
let simplePostIdValue;
@ -29,6 +30,7 @@ const runOrderEmailReceivingTest = () => {
describe('Shopper Order Email Receiving', () => {
beforeAll(async () => {
await merchant.login();
await deleteAllEmailLogs();
simplePostIdValue = await createSimpleProduct();
await merchant.logout();
});