tried to removed duplicate submit call

This commit is contained in:
Ulf Gebhardt 2019-05-09 14:42:12 +02:00
parent b8465c914c
commit 4a9514c5fb
No known key found for this signature in database
GPG Key ID: 44C888923CC8E7F3

View File

@ -141,14 +141,13 @@ describe('ChangePassword.vue', () => {
})
describe('mutation rejects', () => {
beforeEach(() => {
wrapper.find('input#oldPassword').setValue('supersecret')
wrapper.find('input#newPassword').setValue('supersecret')
wrapper.find('input#confirmPassword').setValue('supersecret')
beforeEach(async () => {
await wrapper.find('input#oldPassword').setValue('supersecret')
await wrapper.find('input#newPassword').setValue('supersecret')
await wrapper.find('input#confirmPassword').setValue('supersecret')
})
it('displays error message', async () => {
await wrapper.find('form').trigger('submit')
await wrapper.find('form').trigger('submit')
await mocks.$apollo.mutate