Skip to content

Commit

Permalink
Merge branch '191-ArrumarPaginasR1' of https://github.com/fga-eps-mds…
Browse files Browse the repository at this point in the history
…/2023.2-PrintGo-FrontEnd into 191-ArrumarPaginasR1
  • Loading branch information
lipeaaraujo committed Dec 6, 2023
2 parents 7e70287 + ca7277a commit b554933
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/tests/pages/Login.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,13 @@ describe('Login Component', () => {
expect(mockNavigate).toHaveBeenCalledWith('/home');
});
});

it("navega para a página 'esqueciMinhaSenha' quando é clicado", () => {
render(<Login/>);
const buttonElement = screen.getByText("Recuperar senha");
fireEvent.click(buttonElement);
let url = location.href;
url = url.replace("http://localhost/", "/")
expect(url).toBe("/esqueciMinhaSenha");
});
});

0 comments on commit b554933

Please sign in to comment.