fix(views): tests for kanban and gantt views
This commit is contained in:
@ -10,7 +10,7 @@ export class BucketFactory extends Factory {
|
||||
return {
|
||||
id: '{increment}',
|
||||
title: faker.lorem.words(3),
|
||||
project_id: 1,
|
||||
project_view_id: '{increment}',
|
||||
created_by_id: 1,
|
||||
created: now.toISOString(),
|
||||
updated: now.toISOString(),
|
||||
|
@ -14,7 +14,6 @@ export class TaskFactory extends Factory {
|
||||
project_id: 1,
|
||||
created_by_id: 1,
|
||||
index: '{increment}',
|
||||
position: '{increment}',
|
||||
created: now.toISOString(),
|
||||
updated: now.toISOString()
|
||||
}
|
||||
|
13
frontend/cypress/factories/task_buckets.ts
Normal file
13
frontend/cypress/factories/task_buckets.ts
Normal file
@ -0,0 +1,13 @@
|
||||
import {Factory} from '../support/factory'
|
||||
|
||||
export class TaskBucketFactory extends Factory {
|
||||
static table = 'task_buckets'
|
||||
|
||||
static factory() {
|
||||
return {
|
||||
task_id: '{increment}',
|
||||
bucket_id: '{increment}',
|
||||
project_view_id: '{increment}',
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user