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:
parent
423314713e
commit
1cfaadbaf5
3 changed files with 10 additions and 10 deletions
|
@ -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 doesn’t 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 (
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue