Update ids in modal tests

This commit is contained in:
seotts 2021-12-03 08:42:12 -05:00
parent 5bf60d6803
commit cb3864c67a
3 changed files with 5 additions and 5 deletions

View file

@ -74,7 +74,7 @@ const EmailConfirmationModal = ({
(<React.Fragment> (<React.Fragment>
<FormattedMessage <FormattedMessage
id="emailConfirmationModal.havingTrouble" id="emailConfirmationModal.havingTrouble"
values={{TipsLink: ( values={{tipsLink: (
<a <a
onClick={e => { // eslint-disable-line react/jsx-no-bind onClick={e => { // eslint-disable-line react/jsx-no-bind
e.preventDefault(); e.preventDefault();

View file

@ -260,7 +260,7 @@
"emailConfirmationModal.accountSettings": "Account Settings", "emailConfirmationModal.accountSettings": "Account Settings",
"emailConfirmationModal.wantMoreInfo": "Want more information? {FAQLink}", "emailConfirmationModal.wantMoreInfo": "Want more information? {FAQLink}",
"emailConfirmationModal.checkOutFAQ": "Check out the FAQ", "emailConfirmationModal.checkOutFAQ": "Check out the FAQ",
"emailConfirmationModal.havingTrouble": "Having Trouble? {TipsLink}", "emailConfirmationModal.havingTrouble": "Having Trouble? {tipsLink}",
"emailConfirmationModal.checkOutTips": "Check out these tips", "emailConfirmationModal.checkOutTips": "Check out these tips",
"thumbnail.by": "by", "thumbnail.by": "by",

View file

@ -38,10 +38,10 @@ describe('Modal', () => {
/>, {email: testEmail, context: {store: defaultStore}} />, {email: testEmail, context: {store: defaultStore}}
); );
const tipsLinkWrapper = component.find({id: 'registration.emailConfirmationModalHavingTrouble'}); const tipsLinkWrapper = component.find({id: 'emailConfirmationModal.havingTrouble'});
const tipsLink = mountWithIntl(tipsLinkWrapper.instance().props.values.TipsLink); const tipsLink = mountWithIntl(tipsLinkWrapper.instance().props.values.tipsLink);
tipsLink.simulate('click'); tipsLink.simulate('click');
expect(component.text()).toContain('emailConfirmationModalHeader2'); expect(component.text()).toContain('emailConfirmationModal.confirmingTips');
}); });
test('Close button shows correctly', () => { test('Close button shows correctly', () => {