19 lines
486 B
TypeScript
19 lines
486 B
TypeScript
import { Page } from '@playwright/test';
|
|
import { BasePage } from './BasePage';
|
|
import { getPageConfig } from '../config/test-pages';
|
|
|
|
export class AboutPage extends BasePage {
|
|
constructor(page: Page, config?) {
|
|
const pageConfig = getPageConfig('about');
|
|
super(page, pageConfig.url, config);
|
|
}
|
|
|
|
async getPageTitle(): Promise<string> {
|
|
return await this.getText('h1');
|
|
}
|
|
|
|
async getContent(): Promise<string> {
|
|
return await this.getText('.about-content');
|
|
}
|
|
}
|