mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-04-06 01:25:31 +00:00
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:
commit
3c8a59c01b
@ -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!')
|
||||||
})
|
})
|
||||||
})
|
}) */
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user