Awaited shopper.logout()
This commit is contained in:
parent
313d40d396
commit
76548b872c
|
@ -40,7 +40,7 @@ const runAddNewShippingZoneTest = () => {
|
|||
});
|
||||
|
||||
afterAll( async () => {
|
||||
shopper.logout();
|
||||
await shopper.logout();
|
||||
} );
|
||||
|
||||
it('add shipping zone for San Francisco with free Local pickup', async () => {
|
||||
|
|
|
@ -26,7 +26,7 @@ const runMyAccountCreateAccountTest = () => {
|
|||
});
|
||||
|
||||
afterAll( async () => {
|
||||
shopper.logout();
|
||||
await shopper.logout();
|
||||
} );
|
||||
|
||||
it('can create a new account via my account', async () => {
|
||||
|
|
|
@ -35,7 +35,7 @@ const runMyAccountPayOrderTest = () => {
|
|||
});
|
||||
|
||||
afterAll( async () => {
|
||||
shopper.logout();
|
||||
await shopper.logout();
|
||||
} );
|
||||
|
||||
it('allows customer to pay for their order in My Account', async () => {
|
||||
|
|
|
@ -16,7 +16,7 @@ const pages = [
|
|||
const runMyAccountPageTest = () => {
|
||||
describe('My account page', () => {
|
||||
afterAll( async () => {
|
||||
shopper.logout();
|
||||
await shopper.logout();
|
||||
} );
|
||||
|
||||
it('allows customer to login', async () => {
|
||||
|
|
|
@ -37,7 +37,7 @@ const runOrderEmailReceivingTest = () => {
|
|||
});
|
||||
|
||||
afterAll( async () => {
|
||||
shopper.logout();
|
||||
await shopper.logout();
|
||||
} );
|
||||
|
||||
it('should receive order email after purchasing an item', async () => {
|
||||
|
|
Loading…
Reference in New Issue