File size: 566 Bytes
1e92f2d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | import { Page } from 'playwright';
const selectors = {
comingSoonText: ':text("Coming Soon")',
};
/**
* Represents the Coming Soon page when the site has not yet launched.
*/
export class ComingSoonPage {
private page: Page;
/**
* Constructs an instance of the component.
*
* @param {Page} page The underlying page.
*/
constructor( page: Page ) {
this.page = page;
}
/**
* Validates the site is in coming soon state.
*/
async validateComingSoonState(): Promise< void > {
await this.page.waitForSelector( selectors.comingSoonText );
}
}
|