mirror of
https://codeberg.org/Kankys/musicCalendar.git
synced 2026-11-11 05:54:36 +01:00
Změny v textacích a testech
This commit is contained in:
1 parent
c815d8ca86
commit
6338ddfdca
9 files changed
+107
-153
No files matched your search
@@ -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.');
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user