fix(views): create bucket in test
This commit is contained in:
parent
5b01710943
commit
89ed71777e
@ -5,6 +5,7 @@ import {TaskFactory} from '../../factories/task'
|
|||||||
import {UserFactory} from '../../factories/user'
|
import {UserFactory} from '../../factories/user'
|
||||||
import {ProjectFactory} from '../../factories/project'
|
import {ProjectFactory} from '../../factories/project'
|
||||||
import {prepareProjects} from './prepareProjects'
|
import {prepareProjects} from './prepareProjects'
|
||||||
|
import {BucketFactory} from '../../factories/bucket'
|
||||||
|
|
||||||
describe('Project View List', () => {
|
describe('Project View List', () => {
|
||||||
createFakeUserAndLogin()
|
createFakeUserAndLogin()
|
||||||
@ -23,7 +24,11 @@ describe('Project View List', () => {
|
|||||||
.should('exist')
|
.should('exist')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('Should create a new task', () => {
|
it.only('Should create a new task', () => {
|
||||||
|
BucketFactory.create(2, {
|
||||||
|
project_view_id: 1,
|
||||||
|
})
|
||||||
|
|
||||||
const newTaskTitle = 'New task'
|
const newTaskTitle = 'New task'
|
||||||
|
|
||||||
cy.visit('/projects/1')
|
cy.visit('/projects/1')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user