fix(tests): make sure the task is created with a bucket
This commit is contained in:
parent
2deb66855b
commit
6e3d64d6ef
@ -4,6 +4,7 @@ import {TaskFactory} from '../../factories/task'
|
|||||||
import {ProjectFactory} from '../../factories/project'
|
import {ProjectFactory} from '../../factories/project'
|
||||||
import {NamespaceFactory} from '../../factories/namespace'
|
import {NamespaceFactory} from '../../factories/namespace'
|
||||||
import {UserProjectFactory} from '../../factories/users_project'
|
import {UserProjectFactory} from '../../factories/users_project'
|
||||||
|
import {BucketFactory} from '../../factories/bucket'
|
||||||
|
|
||||||
describe('Editor', () => {
|
describe('Editor', () => {
|
||||||
createFakeUserAndLogin()
|
createFakeUserAndLogin()
|
||||||
@ -11,6 +12,7 @@ describe('Editor', () => {
|
|||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
NamespaceFactory.create(1)
|
NamespaceFactory.create(1)
|
||||||
ProjectFactory.create(1)
|
ProjectFactory.create(1)
|
||||||
|
BucketFactory.create(1)
|
||||||
TaskFactory.truncate()
|
TaskFactory.truncate()
|
||||||
UserProjectFactory.truncate()
|
UserProjectFactory.truncate()
|
||||||
})
|
})
|
||||||
@ -24,6 +26,7 @@ describe('Editor', () => {
|
|||||||
* [ ] Checklist
|
* [ ] Checklist
|
||||||
* [x] Checklist checked
|
* [x] Checklist checked
|
||||||
`,
|
`,
|
||||||
|
bucket_id: 1,
|
||||||
})
|
})
|
||||||
|
|
||||||
cy.visit(`/tasks/${tasks[0].id}`)
|
cy.visit(`/tasks/${tasks[0].id}`)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user