0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Updated the login copy in the Portal login modal

refs https://github.com/TryGhost/Team/issues/2182
This commit is contained in:
James Morris 2022-10-27 15:30:16 +01:00
parent 423314713e
commit 1cfaadbaf5
3 changed files with 10 additions and 10 deletions

View file

@ -27,12 +27,12 @@ export default class MagicLinkPage extends React.Component {
static contextType = AppContext;
renderFormHeader() {
let popupTitle = `We've sent you a login link!`;
let popupDescription = `If the email doesn't arrive in 3 minutes, be sure to check your spam folder!`;
let popupTitle = `Now check your email!`;
let popupDescription = `A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.`;
if (this.context.lastPage === 'signup') {
popupTitle = `Now check your email!`;
popupDescription = `To complete signup, click the confirmation link in your inbox. If it doesnt arrive within 3 minutes, check your spam folder!`;
popupDescription = `To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!`;
}
return (

View file

@ -6,7 +6,7 @@ const setup = (overrides) => {
const {mockOnActionFn, ...utils} = render(
<MagicLinkPage />
);
const inboxText = utils.getByText(/we've sent you a login link/i);
const inboxText = utils.getByText(/Now check your email!/i);
const closeBtn = utils.queryByRole('button', {name: 'Close'});
return {
inboxText,

View file

@ -145,7 +145,7 @@ describe('Signin', () => {
emailType: 'signin'
});
const magicLink = await within(popupIframeDocument).findByText(/sent you a login link/i);
const magicLink = await within(popupIframeDocument).findByText(/Now check your email/i);
expect(magicLink).toBeInTheDocument();
});
@ -171,7 +171,7 @@ describe('Signin', () => {
emailType: 'signin'
});
const magicLink = await within(popupIframeDocument).findByText(/sent you a login link/i);
const magicLink = await within(popupIframeDocument).findByText(/Now check your email/i);
expect(magicLink).toBeInTheDocument();
});
@ -197,7 +197,7 @@ describe('Signin', () => {
emailType: 'signin'
});
const magicLink = await within(popupIframeDocument).findByText(/sent you a login link/i);
const magicLink = await within(popupIframeDocument).findByText(/Now check your email/i);
expect(magicLink).toBeInTheDocument();
});
});
@ -237,7 +237,7 @@ describe('Signin', () => {
emailType: 'signin'
});
const magicLink = await within(popupIframeDocument).findByText(/sent you a login link/i);
const magicLink = await within(popupIframeDocument).findByText(/Now check your email/i);
expect(magicLink).toBeInTheDocument();
});
@ -263,7 +263,7 @@ describe('Signin', () => {
emailType: 'signin'
});
const magicLink = await within(popupIframeDocument).findByText(/sent you a login link/i);
const magicLink = await within(popupIframeDocument).findByText(/Now check your email/i);
expect(magicLink).toBeInTheDocument();
});
@ -289,7 +289,7 @@ describe('Signin', () => {
emailType: 'signin'
});
const magicLink = await within(popupIframeDocument).findByText(/sent you a login link/i);
const magicLink = await within(popupIframeDocument).findByText(/Now check your email/i);
expect(magicLink).toBeInTheDocument();
});
});