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

@@ -18,7 +18,6 @@ import {
import { AdminUrlUtil } from '../helpers/adminUrlUtil.js'
import { initPayloadE2E } from '../helpers/initPayloadE2E.js'
import { POLL_TOPASS_TIMEOUT } from '../playwright.config.js'
import config from './config.js'
import {
docLevelAccessSlug,
readOnlySlug,
@@ -50,7 +49,7 @@ describe('access control', () => {
let serverURL: string
beforeAll(async ({ browser }) => {
;({ payload, serverURL } = await initPayloadE2E({ config, dirname }))
;({ payload, serverURL } = await initPayloadE2E({ dirname }))
url = new AdminUrlUtil(serverURL, slug)
restrictedUrl = new AdminUrlUtil(serverURL, restrictedSlug)