test(e2e/kanban): seed the view only once with done_bucket_id
This commit is contained in:
parent
af6923524f
commit
7227c59f5e
|
|
@ -152,18 +152,12 @@ test.describe('Project View Kanban', () => {
|
||||||
project_id: projects[0].id,
|
project_id: projects[0].id,
|
||||||
view_kind: 3,
|
view_kind: 3,
|
||||||
bucket_configuration_mode: 1,
|
bucket_configuration_mode: 1,
|
||||||
|
done_bucket_id: 2,
|
||||||
})
|
})
|
||||||
const localBuckets = await BucketFactory.create(2, {
|
const localBuckets = await BucketFactory.create(2, {
|
||||||
|
id: '{increment}',
|
||||||
project_view_id: 10,
|
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()
|
const tomorrow = new Date()
|
||||||
tomorrow.setDate(tomorrow.getDate() + 1)
|
tomorrow.setDate(tomorrow.getDate() + 1)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue