chore: ensure autologin passes before starting tests for all e2e test suites (#5659)

This commit is contained in:
Alessio Gravili
2024-04-04 13:39:06 -04:00
committed by GitHub
parent 3544375fdd
commit e912dde08d
14 changed files with 116 additions and 37 deletions

View File

@@ -9,6 +9,7 @@ import type { ReadOnlyCollection, RestrictedVersion } from './payload-types.js'
import {
closeNav,
ensureAutoLoginAndCompilationIsDone,
exactText,
initPageConsoleErrorCatch,
openDocControls,
@@ -59,6 +60,7 @@ describe('access control', () => {
const context = await browser.newContext()
page = await context.newPage()
initPageConsoleErrorCatch(page)
await ensureAutoLoginAndCompilationIsDone({ page, serverURL })
})
test('field without read access should not show', async () => {