This commit is contained in:
Adrian Duffell 2021-05-27 22:19:51 +08:00 committed by GitHub
parent 1266e32c3f
commit 366ffb18b1
1 changed files with 20 additions and 20 deletions

View File

@ -1,23 +1,23 @@
/**
* Internal dependencies
*/
import { Coupons } from '../../pages/Coupons';
import { Login } from '../../pages/Login';
describe( 'Coupons page', () => {
const couponsPage = new Coupons( page );
const login = new Login( page );
beforeAll( async () => {
await login.login();
} );
afterAll( async () => {
await login.logout();
} );
it( 'A user can view the coupons overview without it crashing', async () => {
await couponsPage.navigate();
await couponsPage.isDisplayed();
} );
} );
import { Coupons } from '../../pages/Coupons';
import { Login } from '../../pages/Login';
describe( 'Coupons page', () => {
const couponsPage = new Coupons( page );
const login = new Login( page );
beforeAll( async () => {
await login.login();
} );
afterAll( async () => {
await login.logout();
} );
it( 'A user can view the coupons overview without it crashing', async () => {
await couponsPage.navigate();
await couponsPage.isDisplayed();
} );
} );