created a test

This commit is contained in:
Nicola Clark 2024-10-11 00:03:49 -05:00
parent 8130e0b614
commit 55aa163bc0
Signed by: nicola
GPG Key ID: 3E1710E7FF08956C
2 changed files with 7 additions and 2 deletions

3
.gitignore vendored
View File

@ -19,3 +19,6 @@ Thumbs.db
# Vite
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
# tests
test-results

View File

@ -1,6 +1,8 @@
import { expect, test } from '@playwright/test';
test('home page has expected h1', async ({ page }) => {
test('page has headline', async ({ page }) => {
await page.goto('/');
await expect(page.locator('h1')).toBeVisible();
const headline = page.locator('header h1');
await expect(headline).toBeVisible();
await expect(headline).toHaveText('resumarkdown');
});