chore: converts e2e suites to new pattern

This commit is contained in:
James
2024-04-01 16:37:12 -04:00
parent df75914e30
commit 5e52339135
12 changed files with 24 additions and 30 deletions

View File

@@ -10,7 +10,6 @@ import type { Page as PayloadPage } from './payload-types.js'
import { initPageConsoleErrorCatch } from '../helpers.js'
import { AdminUrlUtil } from '../helpers/adminUrlUtil.js'
import { initPayloadE2E } from '../helpers/initPayloadE2E.js'
import config from './config.js'
import { mediaSlug } from './shared.js'
const filename = fileURLToPath(import.meta.url)
@@ -24,7 +23,7 @@ let id: string
describe('SEO Plugin', () => {
beforeAll(async ({ browser }) => {
const { serverURL, payload } = await initPayloadE2E({ config, dirname })
const { serverURL, payload } = await initPayloadE2E({ dirname })
url = new AdminUrlUtil(serverURL, 'pages')
const context = await browser.newContext()