chore: fix linting errors and ts bugs.

This commit is contained in:
syntaxbullet
2026-06-17 17:41:21 +02:00
parent 3e04a3c7e3
commit 51494e25a8
41 changed files with 285 additions and 251 deletions

View File

@@ -5,7 +5,7 @@ import { seedTestUser, cleanupTestUser, testUser } from '../helpers/seedUser'
test.describe('Admin Panel', () => {
let page: Page
test.beforeAll(async ({ browser }, testInfo) => {
test.beforeAll(async ({ browser }) => {
await seedTestUser()
const context = await browser.newContext()

View File

@@ -3,12 +3,12 @@ import { test, expect, Page } from '@playwright/test'
test.describe('Frontend', () => {
let page: Page
test.beforeAll(async ({ browser }, testInfo) => {
test.beforeAll(async ({ browser }) => {
const context = await browser.newContext()
page = await context.newPage()
})
test('can load homepage', async ({ page }) => {
test('can load homepage', async () => {
await page.goto('http://localhost:3000')
await expect(page).toHaveTitle(/Payload Website Template/)
const heading = page.locator('h1').first()