diff --git a/app/components/block_link_component.html.erb b/app/components/block_link_component.html.erb index 738bbbcbd76..b34ad5e838e 100644 --- a/app/components/block_link_component.html.erb +++ b/app/components/block_link_component.html.erb @@ -1,7 +1,7 @@ <%= wrapper do %> <%= content %> <% if new_tab %> - <%= t('links.new_window') %> + <%= t('links.new_tab') %> <% end %> <% browser_resources.each do |resource| %> -
  • <%= new_window_link_to resource[:name], resource[:url] %>
  • +
  • <%= new_tab_link_to resource[:name], resource[:url] %>
  • <% end %> diff --git a/app/components/vendor_outage_alert_component.html.erb b/app/components/vendor_outage_alert_component.html.erb index abc68baa15f..c9f467e470b 100644 --- a/app/components/vendor_outage_alert_component.html.erb +++ b/app/components/vendor_outage_alert_component.html.erb @@ -1,6 +1,6 @@ <% if content %> <%= render(AlertComponent.new(type: :error, class: 'margin-bottom-4')) do %> <%= content %> - <%= new_window_link_to t('vendor_outage.get_updates'), StatusPage.base_url %> + <%= new_tab_link_to t('vendor_outage.get_updates'), StatusPage.base_url %> <% end %> <% end %> diff --git a/app/helpers/link_helper.rb b/app/helpers/link_helper.rb index 8b2681c8fde..81bd63229fc 100644 --- a/app/helpers/link_helper.rb +++ b/app/helpers/link_helper.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module LinkHelper - def new_window_link_to(name = nil, options = nil, html_options = nil, &block) + def new_tab_link_to(name = nil, options = nil, html_options = nil, &block) html_options, options, name = options, name, capture(&block) if block html_options ||= {} @@ -9,7 +9,7 @@ def new_window_link_to(name = nil, options = nil, html_options = nil, &block) html_options[:class] = [*html_options[:class], 'usa-link--external'] name = ERB::Util.unwrapped_html_escape(name).rstrip.html_safe # rubocop:disable Rails/OutputSafety - name << content_tag('span', t('links.new_window'), class: 'usa-sr-only') + name << content_tag('span', t('links.new_tab'), class: 'usa-sr-only') link_to(name, options, html_options) end diff --git a/app/javascript/packages/components/link.spec.tsx b/app/javascript/packages/components/link.spec.tsx index 7490c96c22a..9b032774a96 100644 --- a/app/javascript/packages/components/link.spec.tsx +++ b/app/javascript/packages/components/link.spec.tsx @@ -102,7 +102,7 @@ describe('Link', () => { , ); - const link = getByRole('link', { name: 'Example links.new_window' }) as HTMLAnchorElement; + const link = getByRole('link', { name: 'Example links.new_tab' }) as HTMLAnchorElement; expect(link).to.exist(); }); diff --git a/app/javascript/packages/components/link.tsx b/app/javascript/packages/components/link.tsx index 26b3f50c63f..3595aa825d6 100644 --- a/app/javascript/packages/components/link.tsx +++ b/app/javascript/packages/components/link.tsx @@ -56,7 +56,7 @@ function Link({ return ( {children} - {isNewTab && {t('links.new_window')}} + {isNewTab && {t('links.new_tab')}} ); } diff --git a/app/javascript/packages/components/troubleshooting-options.spec.tsx b/app/javascript/packages/components/troubleshooting-options.spec.tsx index 886260b92ba..5f39dafb6b0 100644 --- a/app/javascript/packages/components/troubleshooting-options.spec.tsx +++ b/app/javascript/packages/components/troubleshooting-options.spec.tsx @@ -43,7 +43,7 @@ describe('TroubleshootingOptions', () => { const links = getAllByRole('link') as HTMLAnchorElement[]; expect(links).to.have.lengthOf(2); - expect(links[0].textContent).to.equal('Option 1links.new_window'); + expect(links[0].textContent).to.equal('Option 1links.new_tab'); expect(links[0].getAttribute('href')).to.equal(`/1`); expect(links[0].target).to.equal('_blank'); expect(links[1].textContent).to.equal('Option 2'); diff --git a/app/javascript/packages/document-capture/components/document-capture-troubleshooting-options.spec.tsx b/app/javascript/packages/document-capture/components/document-capture-troubleshooting-options.spec.tsx index 08e06092055..91b1f449f8a 100644 --- a/app/javascript/packages/document-capture/components/document-capture-troubleshooting-options.spec.tsx +++ b/app/javascript/packages/document-capture/components/document-capture-troubleshooting-options.spec.tsx @@ -40,14 +40,14 @@ describe('DocumentCaptureTroubleshootingOptions', () => { expect(links).to.have.lengthOf(2); expect(links[0].textContent).to.equal( - 'idv.troubleshooting.options.doc_capture_tipslinks.new_window', + 'idv.troubleshooting.options.doc_capture_tipslinks.new_tab', ); expect(links[0].getAttribute('href')).to.equal( 'https://example.com/redirect/?category=verify-your-identity&article=how-to-add-images-of-your-state-issued-id&location=document_capture_troubleshooting_options', ); expect(links[0].target).to.equal('_blank'); expect(links[1].textContent).to.equal( - 'idv.troubleshooting.options.supported_documentslinks.new_window', + 'idv.troubleshooting.options.supported_documentslinks.new_tab', ); expect(links[1].getAttribute('href')).to.equal( 'https://example.com/redirect/?category=verify-your-identity&article=accepted-state-issued-identification&location=document_capture_troubleshooting_options', @@ -65,21 +65,21 @@ describe('DocumentCaptureTroubleshootingOptions', () => { expect(links).to.have.lengthOf(3); expect(links[0].textContent).to.equal( - 'idv.troubleshooting.options.doc_capture_tipslinks.new_window', + 'idv.troubleshooting.options.doc_capture_tipslinks.new_tab', ); expect(links[0].getAttribute('href')).to.equal( 'https://example.com/redirect/?category=verify-your-identity&article=how-to-add-images-of-your-state-issued-id&location=document_capture_troubleshooting_options', ); expect(links[0].target).to.equal('_blank'); expect(links[1].textContent).to.equal( - 'idv.troubleshooting.options.supported_documentslinks.new_window', + 'idv.troubleshooting.options.supported_documentslinks.new_tab', ); expect(links[1].getAttribute('href')).to.equal( 'https://example.com/redirect/?category=verify-your-identity&article=accepted-state-issued-identification&location=document_capture_troubleshooting_options', ); expect(links[1].target).to.equal('_blank'); expect(links[2].textContent).to.equal( - 'idv.troubleshooting.options.get_help_at_splinks.new_window', + 'idv.troubleshooting.options.get_help_at_splinks.new_tab', ); expect(links[2].href).to.equal( 'http://example.test/url/to/failure-to-proof?location=document_capture_troubleshooting_options', diff --git a/app/javascript/packages/document-capture/components/in-person-prepare-step.spec.tsx b/app/javascript/packages/document-capture/components/in-person-prepare-step.spec.tsx index 74c1241355d..bcfe3c8252e 100644 --- a/app/javascript/packages/document-capture/components/in-person-prepare-step.spec.tsx +++ b/app/javascript/packages/document-capture/components/in-person-prepare-step.spec.tsx @@ -17,7 +17,7 @@ describe('InPersonPrepareStep', () => { expect(getByText('in_person_proofing.body.prepare.privacy_disclaimer')).to.exist(); expect( queryByRole('link', { - name: 'in_person_proofing.body.prepare.privacy_disclaimer_link links.new_window', + name: 'in_person_proofing.body.prepare.privacy_disclaimer_link links.new_tab', }), ).not.to.exist(); }); @@ -91,7 +91,7 @@ describe('InPersonPrepareStep', () => { const { getByRole } = render(, { wrapper }); const link = getByRole('link', { - name: 'in_person_proofing.body.prepare.privacy_disclaimer_link links.new_window', + name: 'in_person_proofing.body.prepare.privacy_disclaimer_link links.new_tab', }) as HTMLAnchorElement; expect(link.href).to.equal(securityAndPrivacyHowItWorksURL); diff --git a/app/views/devise/sessions/new.html.erb b/app/views/devise/sessions/new.html.erb index 94053d88938..bc19b2519c8 100644 --- a/app/views/devise/sessions/new.html.erb +++ b/app/views/devise/sessions/new.html.erb @@ -81,14 +81,14 @@

    - <%= new_window_link_to( + <%= new_tab_link_to( t('notices.privacy.security_and_privacy_practices'), MarketingSite.security_and_privacy_practices_url, ) %>

    - <%= new_window_link_to( + <%= new_tab_link_to( t('notices.privacy.privacy_act_statement'), MarketingSite.privacy_act_statement_url, ) %> diff --git a/app/views/idv/doc_auth/agreement.html.erb b/app/views/idv/doc_auth/agreement.html.erb index 6c952c8d601..75669c47586 100644 --- a/app/views/idv/doc_auth/agreement.html.erb +++ b/app/views/idv/doc_auth/agreement.html.erb @@ -31,7 +31,7 @@ required: true, ) %>

    - <%= new_window_link_to( + <%= new_tab_link_to( t('doc_auth.instructions.learn_more'), MarketingSite.security_and_privacy_practices_url, ) %> diff --git a/app/views/idv/doc_auth/welcome.html.erb b/app/views/idv/doc_auth/welcome.html.erb index 7eb28cb96d9..957002469fb 100644 --- a/app/views/idv/doc_auth/welcome.html.erb +++ b/app/views/idv/doc_auth/welcome.html.erb @@ -35,7 +35,7 @@

  • <%= bullet_item %>
  • <% end %> - <%= new_window_link_to( + <%= new_tab_link_to( t('idv.troubleshooting.options.learn_more_address_verification_options'), help_center_redirect_path( category: 'verify-your-identity', @@ -95,7 +95,7 @@ <%= t('doc_auth.info.privacy', app_name: APP_NAME) %>

    - <%= new_window_link_to( + <%= new_tab_link_to( t('doc_auth.instructions.learn_more'), MarketingSite.security_and_privacy_practices_url, ) %> diff --git a/app/views/idv/in_person/address.html.erb b/app/views/idv/in_person/address.html.erb index ec88ca63365..68dcfea4927 100644 --- a/app/views/idv/in_person/address.html.erb +++ b/app/views/idv/in_person/address.html.erb @@ -9,7 +9,7 @@ <% unless capture_secondary_id_enabled %>

    <%= t('in_person_proofing.body.address.info') %> - <%= new_window_link_to( + <%= new_tab_link_to( t('in_person_proofing.body.address.learn_more'), MarketingSite.help_center_article_url( category: 'verify-your-identity', diff --git a/app/views/idv/in_person/ready_to_verify/show.html.erb b/app/views/idv/in_person/ready_to_verify/show.html.erb index 236487e29ee..149da2b8b17 100644 --- a/app/views/idv/in_person/ready_to_verify/show.html.erb +++ b/app/views/idv/in_person/ready_to_verify/show.html.erb @@ -44,7 +44,7 @@

    <%= t('in_person_proofing.body.barcode.questions') %> <%= render ClickObserverComponent.new(event_name: 'IdV: user clicked what to bring link on ready to verify page') do %> - <%= new_window_link_to( + <%= new_tab_link_to( t('in_person_proofing.body.barcode.learn_more'), MarketingSite.help_center_article_url( category: 'verify-your-identity', diff --git a/app/views/idv/in_person/ssn.html.erb b/app/views/idv/in_person/ssn.html.erb index 195f167c9b6..383c171e609 100644 --- a/app/views/idv/in_person/ssn.html.erb +++ b/app/views/idv/in_person/ssn.html.erb @@ -18,7 +18,7 @@ locals:

    <%= t('doc_auth.info.ssn') %> - <%= new_window_link_to(MarketingSite.security_and_privacy_practices_url, class: 'display-inline') do %> + <%= new_tab_link_to(MarketingSite.security_and_privacy_practices_url, class: 'display-inline') do %> <%= t('doc_auth.info.learn_more') %> <% end %>

    diff --git a/app/views/idv/phone/new.html.erb b/app/views/idv/phone/new.html.erb index 104f5568354..e69ba929dc9 100644 --- a/app/views/idv/phone/new.html.erb +++ b/app/views/idv/phone/new.html.erb @@ -38,7 +38,7 @@

    - <%= new_window_link_to( + <%= new_tab_link_to( t('idv.troubleshooting.options.learn_more_verify_by_phone'), help_center_redirect_url( category: 'verify-your-identity', diff --git a/app/views/idv/phone_errors/warning.html.erb b/app/views/idv/phone_errors/warning.html.erb index e2df66bc221..f4099e51c60 100644 --- a/app/views/idv/phone_errors/warning.html.erb +++ b/app/views/idv/phone_errors/warning.html.erb @@ -25,7 +25,7 @@

    <%= t('idv.failure.phone.warning.next_steps_html') %> - <%= new_window_link_to( + <%= new_tab_link_to( t('idv.failure.phone.warning.learn_more_link'), help_center_redirect_path( category: 'verify-your-identity', diff --git a/app/views/idv/review/new.html.erb b/app/views/idv/review/new.html.erb index a86b480a389..fe72a284986 100644 --- a/app/views/idv/review/new.html.erb +++ b/app/views/idv/review/new.html.erb @@ -15,7 +15,7 @@ <%= t('idv.messages.sessions.review_message', app_name: APP_NAME) %>

    -<%= new_window_link_to( +<%= new_tab_link_to( t('idv.messages.sessions.read_more_encrypt', app_name: APP_NAME), MarketingSite.security_url, ) %> diff --git a/app/views/idv/ssn/show.html.erb b/app/views/idv/ssn/show.html.erb index c4b6b5238c3..5577ca0577b 100644 --- a/app/views/idv/ssn/show.html.erb +++ b/app/views/idv/ssn/show.html.erb @@ -25,7 +25,7 @@ locals:

    <%= t('doc_auth.info.ssn') %> - <%= new_window_link_to(MarketingSite.security_and_privacy_practices_url, class: 'display-inline') do %> + <%= new_tab_link_to(MarketingSite.security_and_privacy_practices_url, class: 'display-inline') do %> <%= t('doc_auth.info.learn_more') %> <% end %>

    diff --git a/app/views/idv/unavailable/show.html.erb b/app/views/idv/unavailable/show.html.erb index 6a2f8c8bade..929e4228560 100644 --- a/app/views/idv/unavailable/show.html.erb +++ b/app/views/idv/unavailable/show.html.erb @@ -20,7 +20,7 @@ <%= t( 'idv.unavailable.next_steps_html', app_name: APP_NAME, - status_page_link: new_window_link_to( + status_page_link: new_tab_link_to( t('idv.unavailable.status_page_link'), StatusPage.base_url, ), diff --git a/app/views/shared/_footer_lite.html.erb b/app/views/shared/_footer_lite.html.erb index 994a86168d5..83c493405aa 100644 --- a/app/views/shared/_footer_lite.html.erb +++ b/app/views/shared/_footer_lite.html.erb @@ -1,15 +1,15 @@ diff --git a/app/views/shared/_recaptcha_disclosure.html.erb b/app/views/shared/_recaptcha_disclosure.html.erb index 521e4cb5ab9..4b20ccc1b69 100644 --- a/app/views/shared/_recaptcha_disclosure.html.erb +++ b/app/views/shared/_recaptcha_disclosure.html.erb @@ -2,8 +2,8 @@ <%= t( 'two_factor_authentication.recaptcha.disclosure_statement_html', app_name: APP_NAME, - google_policy_link: new_window_link_to(t('two_factor_authentication.recaptcha.google_policy_link'), GooglePolicySite.privacy_url), - google_tos_link: new_window_link_to(t('two_factor_authentication.recaptcha.google_tos_link'), GooglePolicySite.terms_url), - login_tos_link: new_window_link_to(t('two_factor_authentication.recaptcha.login_tos_link'), MarketingSite.rules_of_use_url), + google_policy_link: new_tab_link_to(t('two_factor_authentication.recaptcha.google_policy_link'), GooglePolicySite.privacy_url), + google_tos_link: new_tab_link_to(t('two_factor_authentication.recaptcha.google_tos_link'), GooglePolicySite.terms_url), + login_tos_link: new_tab_link_to(t('two_factor_authentication.recaptcha.login_tos_link'), MarketingSite.rules_of_use_url), ) %>

    \ No newline at end of file diff --git a/app/views/sign_up/registrations/_required_pii_accordion.html.erb b/app/views/sign_up/registrations/_required_pii_accordion.html.erb index 59b9948fbf7..355a95cd0d5 100644 --- a/app/views/sign_up/registrations/_required_pii_accordion.html.erb +++ b/app/views/sign_up/registrations/_required_pii_accordion.html.erb @@ -65,6 +65,6 @@

    - <%= new_window_link_to t('devise.registrations.start.learn_more'), MarketingSite.help_url %> + <%= new_tab_link_to t('devise.registrations.start.learn_more'), MarketingSite.help_url %>

    <% end %> diff --git a/app/views/sign_up/registrations/new.html.erb b/app/views/sign_up/registrations/new.html.erb index 03e44f7abff..50c4a104b94 100644 --- a/app/views/sign_up/registrations/new.html.erb +++ b/app/views/sign_up/registrations/new.html.erb @@ -44,7 +44,7 @@ as: :boolean, label: capture do %> <%= t('sign_up.terms', app_name: APP_NAME) %> - <%= new_window_link_to(t('titles.rules_of_use'), MarketingSite.rules_of_use_url) %> + <%= new_tab_link_to(t('titles.rules_of_use'), MarketingSite.rules_of_use_url) %> <% end, label_html: { class: 'margin-y-0' }, required: true, @@ -56,14 +56,14 @@ <%= render 'shared/cancel', link: decorated_session.cancel_link_url %>

    - <%= new_window_link_to( + <%= new_tab_link_to( t('notices.privacy.security_and_privacy_practices'), MarketingSite.security_and_privacy_practices_url, ) %>

    - <%= new_window_link_to( + <%= new_tab_link_to( t('notices.privacy.privacy_act_statement'), MarketingSite.privacy_act_statement_url, ) %> diff --git a/app/views/users/emails/show.html.erb b/app/views/users/emails/show.html.erb index b16dc470aa2..38fa5bf8e8f 100644 --- a/app/views/users/emails/show.html.erb +++ b/app/views/users/emails/show.html.erb @@ -21,11 +21,15 @@ <%= render 'shared/cancel', link: decorated_session.cancel_link_url %>

    - <%= new_window_link_to t('notices.privacy.security_and_privacy_practices'), - MarketingSite.security_and_privacy_practices_url %> + <%= new_tab_link_to( + t('notices.privacy.security_and_privacy_practices'), + MarketingSite.security_and_privacy_practices_url, + ) %>

    - <%= new_window_link_to t('notices.privacy.privacy_act_statement'), - MarketingSite.privacy_act_statement_url %> + <%= new_tab_link_to( + t('notices.privacy.privacy_act_statement'), + MarketingSite.privacy_act_statement_url, + ) %>

    diff --git a/app/views/users/rules_of_use/new.html.erb b/app/views/users/rules_of_use/new.html.erb index 3e7a0b8c56a..fa949835c6a 100644 --- a/app/views/users/rules_of_use/new.html.erb +++ b/app/views/users/rules_of_use/new.html.erb @@ -5,7 +5,7 @@

    <%= t( 'users.rules_of_use.overview_html', - link: new_window_link_to( + link: new_tab_link_to( t('titles.rules_of_use'), MarketingSite.rules_of_use_url, ), @@ -24,7 +24,7 @@ as: :boolean, label: capture do %> <%= t('users.rules_of_use.check_box_to_accept', app_name: APP_NAME) %> - <%= new_window_link_to(t('titles.rules_of_use'), MarketingSite.rules_of_use_url) %> + <%= new_tab_link_to(t('titles.rules_of_use'), MarketingSite.rules_of_use_url) %> <% end, required: true, ) %> diff --git a/app/views/users/totp_setup/new.html.erb b/app/views/users/totp_setup/new.html.erb index f5b990433ae..2e4afd1a318 100644 --- a/app/views/users/totp_setup/new.html.erb +++ b/app/views/users/totp_setup/new.html.erb @@ -5,7 +5,7 @@

    <%= t( 'forms.totp_setup.totp_intro_html', - link: new_window_link_to(t('links.what_is_totp'), MarketingSite.help_authentication_app_url), + link: new_tab_link_to(t('links.what_is_totp'), MarketingSite.help_authentication_app_url), ) %>

    diff --git a/config/locales/links/en.yml b/config/locales/links/en.yml index 5627e72f7e3..aa04471339d 100644 --- a/config/locales/links/en.yml +++ b/config/locales/links/en.yml @@ -15,7 +15,7 @@ en: exit_login: Exit %{app_name} go_back: Go back help: Help - new_window: '(opens new window)' + new_tab: '(opens new tab)' next: Sign in passwords: forgot: Forgot your password? diff --git a/config/locales/links/es.yml b/config/locales/links/es.yml index 395b5d7634d..4e12f6e9084 100644 --- a/config/locales/links/es.yml +++ b/config/locales/links/es.yml @@ -15,7 +15,7 @@ es: exit_login: Salga de %{app_name} go_back: Regresa help: Ayuda - new_window: '(abre nueva ventana)' + new_tab: (abrir nueva pestaña) next: Siguiente passwords: forgot: '¿Olvidó su contraseña?' diff --git a/config/locales/links/fr.yml b/config/locales/links/fr.yml index 87ebf5624d4..bda9f2ede0f 100644 --- a/config/locales/links/fr.yml +++ b/config/locales/links/fr.yml @@ -15,7 +15,7 @@ fr: exit_login: Quitter %{app_name} go_back: Retourner help: Aide - new_window: '(ouvre une nouvelle fenêtre)' + new_tab: '(ouvre un nouvel onglet)' next: Suivant passwords: forgot: Vous avez oublié votre mot de passe? diff --git a/spec/components/block_link_component_spec.rb b/spec/components/block_link_component_spec.rb index 1b50eabad5f..f42393119b7 100644 --- a/spec/components/block_link_component_spec.rb +++ b/spec/components/block_link_component_spec.rb @@ -25,7 +25,7 @@ rendered = render_inline BlockLinkComponent.new(url: '/', new_tab: true) expect(rendered).to have_css('.block-link.usa-link.usa-link--external[target=_blank]') - expect(rendered).to have_content(t('links.new_window')) + expect(rendered).to have_content(t('links.new_tab')) end end diff --git a/spec/helpers/link_helper_spec.rb b/spec/helpers/link_helper_spec.rb index 6da64d15dfa..4a1a249dfed 100644 --- a/spec/helpers/link_helper_spec.rb +++ b/spec/helpers/link_helper_spec.rb @@ -3,19 +3,19 @@ RSpec.describe LinkHelper do include LinkHelper - describe '#new_window_link_to' do + describe '#new_tab_link_to' do let(:name) { 'Link' } let(:html_options) { {} } - subject(:link) { new_window_link_to(name, '', **html_options) } + subject(:link) { new_tab_link_to(name, '', **html_options) } it 'opens in a new tab' do expect(link).to have_css('[target=_blank]') end it 'includes an accessibility hint about opening in a new tab' do - expect(link).to have_content("#{name}#{t('links.new_window')}") - expect(link).to have_css('.usa-sr-only', text: t('links.new_window')) + expect(link).to have_content("#{name}#{t('links.new_tab')}") + expect(link).to have_css('.usa-sr-only', text: t('links.new_tab')) end it 'adds design system external link class' do @@ -33,7 +33,7 @@ context 'with whitespace in the link text' do subject(:link) do - new_window_link_to('', {}) do + new_tab_link_to('', {}) do concat content_tag(:span, name) concat ' ' end @@ -42,7 +42,7 @@ it 'trims whitespace between link text and the accessible label' do # Regression: Safari's handling of the trailing whitespace would cause the external link # icon to be shown on a new line. - expect(link).to have_content("#{name}#{t('links.new_window')}") + expect(link).to have_content("#{name}#{t('links.new_tab')}") end end @@ -63,12 +63,12 @@ end context 'content given as block' do - subject(:link) { new_window_link_to('/url', **html_options) { name } } + subject(:link) { new_tab_link_to('/url', **html_options) { name } } it 'renders a link with the expected attributes' do expect(link).to have_css( '.usa-link--external[href="/url"][target=_blank]', - text: "#{name}#{t('links.new_window')}", + text: "#{name}#{t('links.new_tab')}", ) end diff --git a/spec/javascript/packages/document-capture/components/documents-step-spec.jsx b/spec/javascript/packages/document-capture/components/documents-step-spec.jsx index 2e4b7e200db..e1d5adf102a 100644 --- a/spec/javascript/packages/document-capture/components/documents-step-spec.jsx +++ b/spec/javascript/packages/document-capture/components/documents-step-spec.jsx @@ -112,8 +112,7 @@ describe('document-capture/components/documents-step', () => { getByRole('heading', { name: 'components.troubleshooting_options.default_heading' }), ).to.be.ok(); expect( - getByRole('link', { name: 'idv.troubleshooting.options.get_help_at_sp links.new_window' }) - .href, + getByRole('link', { name: 'idv.troubleshooting.options.get_help_at_sp links.new_tab' }).href, ).to.equal( 'https://example.com/?step=document_capture&location=document_capture_troubleshooting_options', ); diff --git a/spec/javascript/packages/document-capture/components/review-issues-step-spec.jsx b/spec/javascript/packages/document-capture/components/review-issues-step-spec.jsx index 818fe383ec4..b9c027f2537 100644 --- a/spec/javascript/packages/document-capture/components/review-issues-step-spec.jsx +++ b/spec/javascript/packages/document-capture/components/review-issues-step-spec.jsx @@ -62,11 +62,11 @@ describe('document-capture/components/review-issues-step', () => { expect(getByRole('button', { name: 'idv.failure.button.warning' })).to.be.ok(); expect( - getByRole('link', { name: 'idv.troubleshooting.options.doc_capture_tips links.new_window' }), + getByRole('link', { name: 'idv.troubleshooting.options.doc_capture_tips links.new_tab' }), ).to.exist(); expect( getByRole('link', { - name: 'idv.troubleshooting.options.supported_documents links.new_window', + name: 'idv.troubleshooting.options.supported_documents links.new_tab', }), ).to.exist(); }); @@ -191,8 +191,7 @@ describe('document-capture/components/review-issues-step', () => { getByRole('heading', { name: 'components.troubleshooting_options.default_heading' }), ).to.be.ok(); expect( - getByRole('link', { name: 'idv.troubleshooting.options.get_help_at_sp links.new_window' }) - .href, + getByRole('link', { name: 'idv.troubleshooting.options.get_help_at_sp links.new_tab' }).href, ).to.equal( 'https://example.com/?step=document_capture&location=document_capture_troubleshooting_options', );