mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Fix test so that the UI changes are represented in the tests.
This commit is contained in:
parent
93aa8c4865
commit
3676a57398
@ -146,8 +146,8 @@ describe('ResetPassword', () => {
|
||||
expect(toasterMock).toHaveBeenCalledWith('...Code is older than 10 minutes')
|
||||
})
|
||||
|
||||
it('router pushes to /password/reset', () => {
|
||||
expect(routerPushMock).toHaveBeenCalledWith('/password/reset')
|
||||
it('router pushes to /thx/login', () => {
|
||||
expect(routerPushMock).toHaveBeenCalledWith('/thx/login')
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
@ -99,11 +99,11 @@ describe('Thx', () => {
|
||||
})
|
||||
|
||||
it('renders the thanks redirect button', () => {
|
||||
expect(wrapper.find('a.btn').text()).toBe('login')
|
||||
expect(wrapper.find('a.btn').text()).toBe('settings.password.reset')
|
||||
})
|
||||
|
||||
it('links the redirect button to /login', () => {
|
||||
expect(wrapper.find('a.btn').attributes('href')).toBe('/login')
|
||||
it('links the redirect button to /password', () => {
|
||||
expect(wrapper.find('a.btn').attributes('href')).toBe('/password')
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user