10 lines
413 B
TypeScript
10 lines
413 B
TypeScript
import { expect, test } from '@playwright/test'
|
|||
|
|
|
||
|
|
test('blog archive lists only published articles', async ({ page }) => {
|
||
|
|
await page.goto('/blog')
|
||
|
|
|
||
|
|
await expect(page.getByRole('link', { name: 'Secondo articolo pubblicato' })).toBeVisible()
|
||
|
|
await expect(page.getByRole('link', { name: 'Articolo pubblicato', exact: true })).toBeVisible()
|
||
|
|
await expect(page.getByText('Articolo in bozza')).toHaveCount(0)
|
||
|
|
})
|