tests criteria, test search user in mass creation

This commit is contained in:
ogerly 2022-02-03 08:31:08 +01:00
parent 96376eaeeb
commit 0c72471e90

View File

@ -1,4 +1,4 @@
import { shallowMount } from '@vue/test-utils'
import { shallowMount, mount } from '@vue/test-utils'
import Creation from './Creation.vue'
const localVue = global.localVue
@ -304,10 +304,26 @@ describe('Creation', () => {
expect(toastErrorMock).toBeCalledWith('Ouch')
})
})
})
})
describe('Mount Creation', () => {
let wrapper
const Wrapper = () => {
return mount(Creation, { localVue, mocks })
}
describe('mount', () => {
beforeEach(() => {
wrapper = Wrapper()
})
describe('set value in test-input-criteria', () => {
beforeEach(async () => {
wrapper = Wrapper()
await wrapper.find('.test-input-criteria').setValue('some value')
})