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
@@ -1,20 +0,0 @@
import { test, expect } from '@playwright/test';
test('has title', async ({ page }) => {
await page.goto('https://music.lukan.cz');
// Expect a title "to contain" a substring.
await expect(page).toHaveTitle(/Zažij numetal a grunge každý den, po celý rok./);
});
test('get started link', async ({ page }) => {
await page.goto('https://music.lukan.cz');
// // Click the get started link.
// await page.getByRole('link', { name: 'O projektu' }).click();
// // Expects page to have a heading with the name of Installation.
// await expect(page.getByRole('heading', { name: 'Installation' })).toBeVisible();
});
+19
View File
@@ -0,0 +1,19 @@
import { test, expect } from '@playwright/test';
import { HomePage } from '../assets/pages/HomePage';
let homePage: HomePage;
test.describe('Home page', () => {
// Před každým testem vytvoříme novou instanci stránky
test.beforeEach(async ({ page }) => {
homePage = new HomePage(page);
await homePage.navigate();
});
test('has title', async ({ page }) => {
await homePage.navigate('index.html');
await expect(homePage.page).toHaveURL(/\/index\.html$/); // Odolné testování URL
await expect(page).toHaveTitle('Zažij numetal a grunge každý den, po celý rok.');
});
});