Fix test so that the UI changes are represented in the tests.

This commit is contained in:
elweyn 2022-01-22 13:03:24 +01:00
parent 93aa8c4865
commit 3676a57398
2 changed files with 5 additions and 5 deletions

View File

@ -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')
})
})

View File

@ -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')
})
})
})