test(e2e/kanban): seed the view only once with done_bucket_id

This commit is contained in:
kolaente 2026-04-14 13:23:52 +02:00 committed by kolaente
parent af6923524f
commit 7227c59f5e
1 changed files with 2 additions and 8 deletions

View File

@ -152,18 +152,12 @@ test.describe('Project View Kanban', () => {
project_id: projects[0].id,
view_kind: 3,
bucket_configuration_mode: 1,
done_bucket_id: 2,
})
const localBuckets = await BucketFactory.create(2, {
id: '{increment}',
project_view_id: 10,
})
// Re-seed the view with done_bucket_id set now that the bucket exists
await ProjectViewFactory.create(1, {
id: 10,
project_id: projects[0].id,
view_kind: 3,
bucket_configuration_mode: 1,
done_bucket_id: localBuckets[1].id,
})
const tomorrow = new Date()
tomorrow.setDate(tomorrow.getDate() + 1)