From 0c72471e90ef6ab14b890a9ade1bacb9f4d331c2 Mon Sep 17 00:00:00 2001 From: ogerly Date: Thu, 3 Feb 2022 08:31:08 +0100 Subject: [PATCH] tests criteria, test search user in mass creation --- admin/src/pages/Creation.spec.js | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/admin/src/pages/Creation.spec.js b/admin/src/pages/Creation.spec.js index bbc4f6f2d..56c5c0864 100644 --- a/admin/src/pages/Creation.spec.js +++ b/admin/src/pages/Creation.spec.js @@ -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') })