Link every Home feature card, keep one heading, and call the emailed link a login link #109
No files matched your search
@@ -51,7 +51,7 @@
|
||||
},
|
||||
"login": {
|
||||
"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": {
|
||||
"title": "Invitation",
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
"title": "Log in to CommunityRule",
|
||||
"subtitle": "Enter your email and we'll send you a login link. No password needed.",
|
||||
"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",
|
||||
"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",
|
||||
"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",
|
||||
"continueWithoutSaving": "Continue without saving",
|
||||
"emailLabel": "Email address",
|
||||
|
||||
@@ -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