From 13559e229d003e05f4ca549254bfdee4bcc4a344 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Wed, 3 Apr 2019 23:16:05 +0800 Subject: [PATCH] Fix front end test --- resources/assets/tests/views/auth/Login.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/assets/tests/views/auth/Login.test.ts b/resources/assets/tests/views/auth/Login.test.ts index 59ab9359..199f818c 100644 --- a/resources/assets/tests/views/auth/Login.test.ts +++ b/resources/assets/tests/views/auth/Login.test.ts @@ -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')