woocommerce/plugins/woocommerce-admin/tests/e2e/specs/marketing/coupons.test.ts

24 lines
504 B
TypeScript

/**
* 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();
} );
} );