2021-05-07 16:29:20 +00:00
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
2021-05-27 14:19:51 +00:00
|
|
|
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();
|
|
|
|
} );
|
|
|
|
} );
|