fix: move truncateAll to apiContext fixture and fix view ID conflicts

This commit is contained in:
kolaente 2026-04-03 21:07:55 +02:00 committed by kolaente
parent aa1202fea8
commit 4888b1d8ca
2 changed files with 2 additions and 2 deletions

View File

@ -423,7 +423,7 @@ test.describe('Task', () => {
const projects = await ProjectFactory.create(2)
const views = await createDefaultViews(projects[0].id)
// Also create views for the target project
await createDefaultViews(projects[1].id)
await createDefaultViews(projects[1].id, 5)
await BucketFactory.create(2, {
project_view_id: views[3].id,
})

View File

@ -15,12 +15,12 @@ export const test = base.extend<{
})
Factory.setRequestContext(apiContext)
await Factory.truncateAll()
await use(apiContext)
await apiContext.dispose()
},
currentUser: async ({apiContext}, use) => {
await Factory.truncateAll()
const user = await createFakeUser()
await use(user)
},