ci: fix run e2e command (#10779)

This commit is contained in:
Alessio Gravili
2025-01-23 20:47:49 -07:00
committed by GitHub
parent b9d3250117
commit 344b23139e
12 changed files with 8780 additions and 3100 deletions

View File

@@ -31,7 +31,7 @@ test.describe('Join Field', () => {
let categoriesURL: AdminUrlUtil
let uploadsURL: AdminUrlUtil
let categoriesJoinRestrictedURL: AdminUrlUtil
let categoryID
let categoryID: string | number
test.beforeAll(async ({ browser }, testInfo) => {
testInfo.setTimeout(TEST_TIMEOUT_LONG)
@@ -50,6 +50,10 @@ test.describe('Join Field', () => {
},
})
if (!docs[0]) {
throw new Error('No category found with the name "example"')
}
;({ id: categoryID } = docs[0])
const context = await browser.newContext()
@@ -87,6 +91,9 @@ test.describe('Join Field', () => {
limit: 1,
})
const category = result.docs[0]
if (!category) {
throw new Error('No category found')
}
// seed additional posts to test defaultLimit (5)
await payload.create({
collection: postsSlug,