Compare commits
6 Commits
e5b69b060b
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 417cf3715b | |||
| f5194d4dbc | |||
| 3f68223d9b | |||
| 0f93b13b7b | |||
| 802a0fee46 | |||
| 3a09c8a270 |
@@ -11,6 +11,6 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm install
|
run: npm install
|
||||||
- name: Install Playwright Browsers
|
- name: Install Playwright Browsers
|
||||||
run: npx playwright install
|
run: npx playwright install --with-deps
|
||||||
- name: Run Playwright tests
|
- name: Run Playwright tests
|
||||||
run: npx playwright test --project=chromium --project=firefox
|
run: npx playwright test --project=chromium --project=firefox
|
||||||
@@ -4,7 +4,6 @@ import { expectedHalloText, expectedMainHeading,expectedHalloToHaveText2, expect
|
|||||||
|
|
||||||
// TODO:
|
// TODO:
|
||||||
// Footer
|
// Footer
|
||||||
// Theme
|
|
||||||
|
|
||||||
export class HomePage {
|
export class HomePage {
|
||||||
readonly page: Page;
|
readonly page: Page;
|
||||||
@@ -35,7 +34,7 @@ export class HomePage {
|
|||||||
await this.page.goto(this.url);
|
await this.page.goto(this.url);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Otestování, zda jsou všechny odkazy v menu viditelné
|
// Otestování, zda jsou všechny odkazy v menu viditelné.
|
||||||
async checkMenuTexts(expectedTexts: string[]) {
|
async checkMenuTexts(expectedTexts: string[]) {
|
||||||
for (const text of expectedTexts) {
|
for (const text of expectedTexts) {
|
||||||
const item = this.page.getByText(text, { exact: true });
|
const item = this.page.getByText(text, { exact: true });
|
||||||
@@ -50,8 +49,6 @@ export class HomePage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// test interní odkazy
|
// test interní odkazy
|
||||||
async clickMenuItem(name: string) {
|
async clickMenuItem(name: string) {
|
||||||
await this.page.getByRole('link', { name: name, exact: true }).click();
|
await this.page.getByRole('link', { name: name, exact: true }).click();
|
||||||
|
|||||||
Reference in New Issue
Block a user