mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 15:47:53 -05:00
Update ids in modal tests
This commit is contained in:
parent
5bf60d6803
commit
cb3864c67a
3 changed files with 5 additions and 5 deletions
|
@ -74,7 +74,7 @@ const EmailConfirmationModal = ({
|
|||
(<React.Fragment>
|
||||
<FormattedMessage
|
||||
id="emailConfirmationModal.havingTrouble"
|
||||
values={{TipsLink: (
|
||||
values={{tipsLink: (
|
||||
<a
|
||||
onClick={e => { // eslint-disable-line react/jsx-no-bind
|
||||
e.preventDefault();
|
||||
|
|
|
@ -260,7 +260,7 @@
|
|||
"emailConfirmationModal.accountSettings": "Account Settings",
|
||||
"emailConfirmationModal.wantMoreInfo": "Want more information? {FAQLink}",
|
||||
"emailConfirmationModal.checkOutFAQ": "Check out the FAQ",
|
||||
"emailConfirmationModal.havingTrouble": "Having Trouble? {TipsLink}",
|
||||
"emailConfirmationModal.havingTrouble": "Having Trouble? {tipsLink}",
|
||||
"emailConfirmationModal.checkOutTips": "Check out these tips",
|
||||
|
||||
"thumbnail.by": "by",
|
||||
|
|
|
@ -38,10 +38,10 @@ describe('Modal', () => {
|
|||
/>, {email: testEmail, context: {store: defaultStore}}
|
||||
);
|
||||
|
||||
const tipsLinkWrapper = component.find({id: 'registration.emailConfirmationModalHavingTrouble'});
|
||||
const tipsLink = mountWithIntl(tipsLinkWrapper.instance().props.values.TipsLink);
|
||||
const tipsLinkWrapper = component.find({id: 'emailConfirmationModal.havingTrouble'});
|
||||
const tipsLink = mountWithIntl(tipsLinkWrapper.instance().props.values.tipsLink);
|
||||
tipsLink.simulate('click');
|
||||
expect(component.text()).toContain('emailConfirmationModalHeader2');
|
||||
expect(component.text()).toContain('emailConfirmationModal.confirmingTips');
|
||||
});
|
||||
|
||||
test('Close button shows correctly', () => {
|
||||
|
|
Loading…
Reference in a new issue