Files
blog/tests/e2e/home.spec.ts
T

12 lines
398 B
TypeScript
Raw Normal View History

2026-09-11 11:41:52 +02:00
import { expect, test } from '@playwright/test'
test('home page shows the latest published article as featured', async ({ page }) => {
await page.goto('/')
await expect(page.getByRole('heading', { name: 'Secondo articolo pubblicato' })).toBeVisible()
await expect(page.getByRole('link', { name: "Leggi l'ultimo articolo" })).toHaveAttribute(
'href',
'/blog/secondo-articolo'
)
})