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
@@ -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();
|
||||
});
|
||||
@@ -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