mirror of
https://github.com/Xevion/xevion.dev.git
synced 2026-01-31 10:26:52 -06:00
Just a commit point while I'm testing stuff. Already decided at this point to simplify and revert away from PayloadCMS.
21 lines
533 B
TypeScript
21 lines
533 B
TypeScript
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:3000')
|
|
|
|
await expect(page).toHaveTitle(/Payload Blank Template/)
|
|
|
|
const headging = page.locator('h1').first()
|
|
|
|
await expect(headging).toHaveText('Welcome to your new project.')
|
|
})
|
|
})
|