test: semantically splits admin e2e (#10213)

Improves the admin e2e test splitting by grouping them by type with
semantic names as opposed to numerically. This will provide much needed
clarity to exactly _where_ new admin tests should be written and help to
quickly distinguish the areas of failure within the CI overview.
This commit is contained in:
Jacob Fletcher
2024-12-28 00:28:37 -05:00
committed by GitHub
parent 466ea292b9
commit 0be1a1d880
18 changed files with 1720 additions and 1755 deletions

View File

@@ -68,16 +68,14 @@ const createFirstUser = async ({
.not.toContain('create-first-user')
}
describe('auth-basic', () => {
describe('Auth (Basic)', () => {
let page: Page
let url: AdminUrlUtil
let serverURL: string
let apiURL: string
beforeAll(async ({ browser }, testInfo) => {
testInfo.setTimeout(TEST_TIMEOUT_LONG)
;({ payload, serverURL } = await initPayloadE2ENoConfig<Config>({ dirname }))
apiURL = `${serverURL}/api`
url = new AdminUrlUtil(serverURL, 'users')
const context = await browser.newContext()