Call the emailed link a login link on the login screens, and keep the nav label as Log in.
This commit is contained in:
1 parent
dc9625c3b2
commit
ae1a148b98
3 files changed
+16
-4
No files matched your search
@@ -173,6 +173,18 @@ describe("Top header chrome", () => {
|
||||
).toHaveAttribute("href", "/workshops");
|
||||
});
|
||||
|
||||
it("labels the signed-out control Log in, not Sign in", () => {
|
||||
renderWithProviders(<Top folderTop={false} />);
|
||||
const logInControls = screen.getAllByRole("menuitem", {
|
||||
name: /log in to your account/i,
|
||||
});
|
||||
expect(logInControls.length).toBeGreaterThan(0);
|
||||
logInControls.forEach((control) => {
|
||||
expect(control).toHaveTextContent("Log in");
|
||||
});
|
||||
expect(screen.queryByText("Sign in")).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("shows Profile instead of Log in when signed in", () => {
|
||||
renderWithProviders(<Top folderTop={false} loggedIn />);
|
||||
expect(
|
||||
|
||||
Reference in new issue
Block a user