diff --git a/webapp/components/PasswordReset/VerifyCode.spec.js b/webapp/components/PasswordReset/VerifyCode.spec.js index 92d6f8d07..3904f62f2 100644 --- a/webapp/components/PasswordReset/VerifyCode.spec.js +++ b/webapp/components/PasswordReset/VerifyCode.spec.js @@ -39,7 +39,16 @@ describe('VerifyCode ', () => { }) describe('after verification code given', () => { - it.todo('displays a form to update your password') + beforeEach(() => { + wrapper = Wrapper() + wrapper.find('input').setValue('123456') + wrapper.find('form').trigger('submit') + }) + + it('displays a form to update your password', () => { + expect(wrapper.find('.change-password').exists()).toBe(true) + }) + describe('submitting new password', () => { it.todo('calls resetPassword graphql mutation') it.todo('delivers new password to backend') diff --git a/webapp/components/PasswordReset/VerifyCode.vue b/webapp/components/PasswordReset/VerifyCode.vue index 13415a5fa..3defca13d 100644 --- a/webapp/components/PasswordReset/VerifyCode.vue +++ b/webapp/components/PasswordReset/VerifyCode.vue @@ -1,7 +1,7 @@