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>
<FormattedMessage
id="emailConfirmationModal.havingTrouble"
values={{TipsLink: (
values={{tipsLink: (
<a
onClick={e => { // eslint-disable-line react/jsx-no-bind
e.preventDefault();

View file

@ -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",

View file

@ -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', () => {