Updated test

This commit is contained in:
Patrick Alvin Alcala 2025-09-01 09:32:18 +08:00
parent 4f71a20c67
commit 1c3f2565c7

View file

@ -3,7 +3,7 @@ import { test, expect } from '@playwright/test'
test('page loaded correctly', async ({ page }) => {
await page.goto('http://localhost:4321')
await expect(page).toHaveTitle('Home')
await expect(page).toHaveTitle('FWT')
const descriptionMeta = await page.getAttribute('meta[name="name"]', 'content')
expect(descriptionMeta).toBe('Template')
@ -23,5 +23,5 @@ test('header title is visible and contains correct text', async ({ page }) => {
await page.goto('http://localhost:4321')
const headerTitle = await page.textContent('h1')
expect(headerTitle).toBe('Main Page')
expect(headerTitle).toBe('Fast WebApp Template')
})