Updated test
This commit is contained in:
parent
4f71a20c67
commit
1c3f2565c7
1 changed files with 2 additions and 2 deletions
|
|
@ -3,7 +3,7 @@ import { test, expect } from '@playwright/test'
|
||||||
test('page loaded correctly', async ({ page }) => {
|
test('page loaded correctly', async ({ page }) => {
|
||||||
await page.goto('http://localhost:4321')
|
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')
|
const descriptionMeta = await page.getAttribute('meta[name="name"]', 'content')
|
||||||
expect(descriptionMeta).toBe('Template')
|
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')
|
await page.goto('http://localhost:4321')
|
||||||
|
|
||||||
const headerTitle = await page.textContent('h1')
|
const headerTitle = await page.textContent('h1')
|
||||||
expect(headerTitle).toBe('Main Page')
|
expect(headerTitle).toBe('Fast WebApp Template')
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue