mirror of
https://codeberg.org/Kankys/musicCalendar_automationTest.git
synced 2026-03-03 02:34:54 +00:00
First test
This commit is contained in:
25
tests/example.spec.ts
Normal file
25
tests/example.spec.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
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('has title about page', async ({ page }) => {
|
||||
await page.goto('https://music.lukan.cz/about.html');
|
||||
|
||||
// Expect a title "to contain" a substring about page.
|
||||
await expect(page).toHaveTitle(/O projektu a další žvásty/);
|
||||
});
|
||||
|
||||
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: '🎸 Zažij numetal a grunge každý den, po celý rok. 💿' })).toBeVisible();
|
||||
});
|
||||
Reference in New Issue
Block a user