fix: move truncateAll to apiContext fixture and fix view ID conflicts
This commit is contained in:
parent
aa1202fea8
commit
4888b1d8ca
|
|
@ -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,
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue