mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
WIP Register.
This commit is contained in:
parent
23bf7a7fe9
commit
d09e10f699
@ -105,6 +105,6 @@ describe('Register', () => {
|
||||
})
|
||||
})
|
||||
|
||||
// To Do: Test lines 156-197,210-213
|
||||
// To Do: Test lines 160-205,218
|
||||
})
|
||||
})
|
||||
|
||||
@ -183,17 +183,13 @@ export default {
|
||||
password: this.form.password.password,
|
||||
},
|
||||
})
|
||||
.then((result) => {
|
||||
if (result.success) {
|
||||
.then(() => {
|
||||
this.form.email = ''
|
||||
this.form.firstname = ''
|
||||
this.form.lastname = ''
|
||||
this.form.password.password = ''
|
||||
|
||||
this.$router.push('/thx/register')
|
||||
} else {
|
||||
throw new Error(result.errors[0].message)
|
||||
}
|
||||
})
|
||||
.catch((error) => {
|
||||
this.showError = true
|
||||
|
||||
@ -86,6 +86,11 @@ describe('ResetPassword', () => {
|
||||
})
|
||||
})
|
||||
|
||||
it('Has sessionId from API call', async () => {
|
||||
await wrapper.vm.$nextTick()
|
||||
expect(wrapper.vm.sessionId).toBe(1)
|
||||
})
|
||||
|
||||
it('renders the Reset Password form when authenticated', () => {
|
||||
expect(wrapper.find('div.resetpwd-form').exists()).toBeTruthy()
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user