fix(tests): make sure the task is created with a bucket

This commit is contained in:
kolaente 2023-03-14 13:42:59 +01:00 committed by Gitea
parent 2deb66855b
commit 6e3d64d6ef
1 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import {TaskFactory} from '../../factories/task'
import {ProjectFactory} from '../../factories/project'
import {NamespaceFactory} from '../../factories/namespace'
import {UserProjectFactory} from '../../factories/users_project'
import {BucketFactory} from '../../factories/bucket'
describe('Editor', () => {
createFakeUserAndLogin()
@ -11,6 +12,7 @@ describe('Editor', () => {
beforeEach(() => {
NamespaceFactory.create(1)
ProjectFactory.create(1)
BucketFactory.create(1)
TaskFactory.truncate()
UserProjectFactory.truncate()
})
@ -24,6 +26,7 @@ describe('Editor', () => {
* [ ] Checklist
* [x] Checklist checked
`,
bucket_id: 1,
})
cy.visit(`/tasks/${tasks[0].id}`)