Files
musicTest/tests/example.spec.ts
T
kankys 73c2b02381
Playwright Tests / test (push) Failing after 1m45s
sa
2026-05-06 00:13:26 +02:00

19 lines
618 B
TypeScript

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