Merge branch '2019/kw15/change_password_strength' of github.com:Human-Connection/Human-Connection into 2019/kw15/change_password_strength

This commit is contained in:
Matt Rider 2019-05-09 14:32:36 -03:00
commit 3c8a59c01b

View File

@ -137,21 +137,21 @@ describe('ChangePassword.vue', () => {
}) })
}) })
describe('mutation rejects', () => { // TODO This is not a valid testcase - we have to decide if we catch the same password on clientside
beforeEach(() => { /* describe('mutation rejects', () => {
wrapper.find('input#oldPassword').setValue('supersecret') beforeEach(async () => {
wrapper.find('input#newPassword').setValue('supersecret') await wrapper.find('input#oldPassword').setValue('supersecret')
wrapper.find('input#confirmPassword').setValue('supersecret') await wrapper.find('input#newPassword').setValue('supersecret')
await wrapper.find('input#confirmPassword').setValue('supersecret')
}) })
it('displays error message', async () => { it('displays error message', async () => {
await wrapper.find('form').trigger('submit')
await wrapper.find('form').trigger('submit') await wrapper.find('form').trigger('submit')
await mocks.$apollo.mutate await mocks.$apollo.mutate
expect(mocks.$toast.error).toHaveBeenCalledWith('Ouch!') expect(mocks.$toast.error).toHaveBeenCalledWith('Ouch!')
}) })
}) }) */
}) })
}) })
}) })