vikunja-frontend/cypress/integration/list/prepareLists.js
Dominik Pschenitschni e78d47fdcf
fix: list specs
2022-01-04 21:55:30 +01:00

16 lines
No EOL
448 B
JavaScript

import {ListFactory} from '../../factories/list'
import {UserFactory} from '../../factories/user'
import {NamespaceFactory} from '../../factories/namespace'
import {TaskFactory} from '../../factories/task'
export function prepareLists(setLists = () => {}) {
beforeEach(() => {
UserFactory.create(1)
NamespaceFactory.create(1)
const lists = ListFactory.create(1, {
title: 'First List'
})
setLists(lists)
TaskFactory.truncate()
})
}