Změny v textacích a testech

This commit is contained in:
kankys committed 2026-07-26 22:25:12 +02:00
1 parent c815d8ca86
commit 6338ddfdca
9 files changed
+107 -153

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
import { expect, type Locator, type Page } from '@playwright/test';
export class HomePage {
readonly page: Page;
constructor(page: Page) {
this.page = page;
}
// Přidej metodu pro navigaci na konkrétní soubor
async navigate(file: string = 'index.html') {
// Pokud jsme na lokálu, přidáme složku /web/
// Pokud jsme na produkci, předpokládáme root /
const prefix = process.env.BASE_URL?.includes('music.lukan.cz') ? '' : 'web/';
await this.page.goto(`${prefix}${file}`);
}
}