Compare commits

..

6 Commits

Author SHA1 Message Date
kankys 417cf3715b ss
Playwright Tests / test (push) Successful in 2m1s
2026-05-07 11:58:43 +02:00
kankys f5194d4dbc xx
Playwright Tests / test (push) Successful in 1m18s
2026-05-06 01:15:22 +02:00
kankys 3f68223d9b d
Playwright Tests / test (push) Successful in 2m5s
2026-05-06 00:12:39 +02:00
kankys 0f93b13b7b tets
Playwright Tests / test (push) Successful in 2m1s
2026-05-06 00:03:27 +02:00
kankys 802a0fee46 test
Playwright Tests / test (push) Successful in 1m27s
2026-05-05 23:12:27 +02:00
kankys 3a09c8a270 runner test
Playwright Tests / test (push) Failing after 1m40s
2026-05-05 23:04:40 +02:00
2 changed files with 2 additions and 5 deletions
+1 -1
View File
@@ -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
+1 -4
View File
@@ -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();