Fix front end test

This commit is contained in:
Pig Fang 2019-04-03 23:16:05 +08:00
parent b23538c47e
commit 13559e229d

View File

@ -35,7 +35,7 @@ test('login', async () => {
expect(Vue.prototype.$http.post).not.toBeCalled()
expect(info.text()).toBe('auth.emptyIdentification')
wrapper.find('[type="email"]').setValue('a@b.c')
wrapper.find('input').setValue('a@b.c')
form.trigger('submit')
expect(Vue.prototype.$http.post).not.toBeCalled()
expect(info.text()).toBe('auth.emptyPassword')