fix(test): add task to bucket in test
This commit is contained in:
parent
422e4371f8
commit
d2adbc53c6
@ -13,6 +13,7 @@ import {BucketFactory} from '../../factories/bucket'
|
|||||||
import {TaskAttachmentFactory} from '../../factories/task_attachments'
|
import {TaskAttachmentFactory} from '../../factories/task_attachments'
|
||||||
import {TaskReminderFactory} from '../../factories/task_reminders'
|
import {TaskReminderFactory} from '../../factories/task_reminders'
|
||||||
import {createDefaultViews} from "../project/prepareProjects";
|
import {createDefaultViews} from "../project/prepareProjects";
|
||||||
|
import { TaskBucketFactory } from '../../factories/task_buckets'
|
||||||
|
|
||||||
function addLabelToTaskAndVerify(labelTitle: string) {
|
function addLabelToTaskAndVerify(labelTitle: string) {
|
||||||
cy.get('.task-view .action-buttons .button')
|
cy.get('.task-view .action-buttons .button')
|
||||||
@ -48,7 +49,7 @@ function uploadAttachmentAndVerify(taskId: number) {
|
|||||||
describe('Task', () => {
|
describe('Task', () => {
|
||||||
createFakeUserAndLogin()
|
createFakeUserAndLogin()
|
||||||
|
|
||||||
let projects
|
let projects: {}[]
|
||||||
let buckets
|
let buckets
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
@ -470,6 +471,10 @@ describe('Task', () => {
|
|||||||
})
|
})
|
||||||
const labels = LabelFactory.create(1)
|
const labels = LabelFactory.create(1)
|
||||||
LabelTaskFactory.truncate()
|
LabelTaskFactory.truncate()
|
||||||
|
TaskBucketFactory.create(1, {
|
||||||
|
task_id: tasks[0].id,
|
||||||
|
bucket_id: buckets[0].id,
|
||||||
|
})
|
||||||
|
|
||||||
cy.visit(`/projects/${projects[0].id}/4`)
|
cy.visit(`/projects/${projects[0].id}/4`)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user