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
@@ -51,7 +51,7 @@
|
|||||||
},
|
},
|
||||||
"login": {
|
"login": {
|
||||||
"title": "Log in",
|
"title": "Log in",
|
||||||
"description": "Enter your email and we'll send you a magic link to sign in. No password needed!"
|
"description": "Enter your email and we'll send you a login link. No password needed."
|
||||||
},
|
},
|
||||||
"invite": {
|
"invite": {
|
||||||
"title": "Invitation",
|
"title": "Invitation",
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
"title": "Log in to CommunityRule",
|
"title": "Log in to CommunityRule",
|
||||||
"subtitle": "Enter your email and we'll send you a login link. No password needed.",
|
"subtitle": "Enter your email and we'll send you a login link. No password needed.",
|
||||||
"saveProgressTitle": "Save your progress?",
|
"saveProgressTitle": "Save your progress?",
|
||||||
"saveProgressSubtitle": "We need your email to save, and we'll send you a magic link to log in. If you don't save now you could lose your progress.",
|
"saveProgressSubtitle": "We need your email to save, and we'll send you a login link. If you don't save now you could lose your progress.",
|
||||||
"keepRuleTitle": "Log in to keep this rule on your profile",
|
"keepRuleTitle": "Log in to keep this rule on your profile",
|
||||||
"keepRuleSubtitle": "Enter your email and we'll send a magic link. Open it on this same browser to attach the rule to your account. You can also continue without saving.",
|
"keepRuleSubtitle": "Enter your email and we'll send a login link. Open it on this same browser to attach the rule to your account. You can also continue without saving.",
|
||||||
"inviteTitle": "Log in to invite your members",
|
"inviteTitle": "Log in to invite your members",
|
||||||
"inviteSubtitle": "Only a logged-in person can invite. Enter your email and we’ll send you a magic link to log in.",
|
"inviteSubtitle": "Only a logged-in person can invite. Enter your email and we’ll send you a login link.",
|
||||||
"backToYourRule": "← Back to your Rule",
|
"backToYourRule": "← Back to your Rule",
|
||||||
"continueWithoutSaving": "Continue without saving",
|
"continueWithoutSaving": "Continue without saving",
|
||||||
"emailLabel": "Email address",
|
"emailLabel": "Email address",
|
||||||
|
|||||||
@@ -173,6 +173,18 @@ describe("Top header chrome", () => {
|
|||||||
).toHaveAttribute("href", "/workshops");
|
).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", () => {
|
it("shows Profile instead of Log in when signed in", () => {
|
||||||
renderWithProviders(<Top folderTop={false} loggedIn />);
|
renderWithProviders(<Top folderTop={false} loggedIn />);
|
||||||
expect(
|
expect(
|
||||||
|
|||||||
Reference in new issue
Block a user