`
- }
+ },
})
await flushPromises()
expect(wrapper.find('span').text()).toBe('the value was different than expected')
@@ -77,6 +75,22 @@ describe('FormularioInput', () => {
expect(wrapper.find('span').text()).toBe('The string other value is not correct.')
})
+ it('no validation on created when errorBehavior is not live', async () => {
+ const wrapper = mount(FormularioInput, {
+ propsData: {
+ name: 'test',
+ validation: 'required|in:abcdef',
+ validationMessages: {in: 'the value was different than expected'},
+ value: 'other value'
+ },
+ scopedSlots: {
+ default: `