12 lines
398 B
TypeScript
12 lines
398 B
TypeScript
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'
|
||
|
|
)
|
||
|
|
})
|