| 1234567891011121314151617181920 |
- import { test, expect, Page } from '@playwright/test'
- test.describe('Frontend', () => {
- let page: Page
- test.beforeAll(async ({ browser }, testInfo) => {
- const context = await browser.newContext()
- page = await context.newPage()
- })
- test('can go on homepage', async ({ page }) => {
- await page.goto('http://localhost:3001')
- await expect(page).toHaveTitle(/Payload Blank Template/)
- const heading = page.locator('h1').first()
- await expect(heading).toHaveText('Welcome to your new project.')
- })
- })
|