16 lines
437 B
TypeScript
16 lines
437 B
TypeScript
import { expect, type Locator, type Page } from '@playwright/test';
|
|
|
|
export class EndeavourosPage {
|
|
readonly page: Page;
|
|
readonly url: string = "https://endeavouros.cz/endeavouros.php";
|
|
readonly mainHeading: Locator;
|
|
|
|
constructor(page: Page) {
|
|
this.page = page;
|
|
this.mainHeading = page.getByText('Minimální systémové požadavky pro EndeavourOS:');
|
|
}
|
|
async navigate() {
|
|
await this.page.goto(this.url);
|
|
}
|
|
|
|
} |