refactor(links): use FAQ URL locale everywhere
This commit is contained in:
parent
ffeb2083f0
commit
faa5dda761
6 changed files with 10 additions and 10 deletions
|
@ -51,7 +51,7 @@
|
|||
= render partial: 'shared/help/help_dropdown_instructeur'
|
||||
- else
|
||||
// NB: on mobile in order to have links correctly aligned, we need a left icon
|
||||
= link_to t('help'), FAQ_URL, class: 'fr-btn fr-icon-questionnaire-line fr-btn--icon-left', title: new_tab_suffix(t('help')), **external_link_attributes
|
||||
= link_to t('help'), t("links.footer.faq.url"), class: 'fr-btn fr-icon-questionnaire-line fr-btn--icon-left', title: new_tab_suffix(t('help')), **external_link_attributes
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -120,4 +120,4 @@
|
|||
%h1.cta-panel-title Une question, un problème ?
|
||||
%p.cta-panel-explanation Consultez notre FAQ
|
||||
%div
|
||||
= link_to "Voir la FAQ", FAQ_URL, class: "fr-btn fr-btn--lg", **external_link_attributes
|
||||
= link_to "Voir la FAQ", t("links.footer.faq.url"), class: "fr-btn fr-btn--lg", **external_link_attributes
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
%h2.cta-panel-title= t(".question")
|
||||
%p.cta-panel-explanation= t(".answer_in_faq")
|
||||
%div
|
||||
= link_to t(".online_help"), FAQ_URL, class: "fr-btn fr-btn--lg", title: new_tab_suffix(t(".online_help")), **external_link_attributes
|
||||
= link_to t(".online_help"), t("links.footer.faq.url"), class: "fr-btn fr-btn--lg", title: new_tab_suffix(t(".online_help")), **external_link_attributes
|
||||
-# We temporarily disable the link to the contact page on the homepage
|
||||
-# %p.cta-panel-explanation Notre équipe est disponible pour vous renseigner et vous aider
|
||||
-# %div
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
%li
|
||||
= link_to FAQ_URL, title: new_tab_suffix(t('help_dropdown.general_title')), **external_link_attributes do
|
||||
= link_to t("links.footer.faq.url"), title: new_tab_suffix(t('help_dropdown.general_title')), **external_link_attributes do
|
||||
%span.icon.help
|
||||
.dropdown-description
|
||||
%span.help-dropdown-title
|
||||
|
|
|
@ -19,7 +19,7 @@ describe 'Getting help:' do
|
|||
within('.help-dropdown') do
|
||||
expect(page).to have_content(procedure.service.email)
|
||||
expect(page).to have_content(procedure.service.telephone)
|
||||
expect(page).to have_link(nil, href: FAQ_URL)
|
||||
expect(page).to have_link(nil, href: I18n.t("links.footer.faq.url"))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -52,7 +52,7 @@ describe 'Getting help:' do
|
|||
within('.help-dropdown') do
|
||||
expect(page).to have_content(dossier.procedure.service.email)
|
||||
expect(page).to have_content(dossier.procedure.service.telephone)
|
||||
expect(page).to have_link(nil, href: FAQ_URL)
|
||||
expect(page).to have_link(nil, href: I18n.t("links.footer.faq.url"))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -69,7 +69,7 @@ describe 'Getting help:' do
|
|||
|
||||
within('.help-dropdown') do
|
||||
expect(page).to have_link(nil, href: messagerie_dossier_path(dossier))
|
||||
expect(page).to have_link(nil, href: FAQ_URL)
|
||||
expect(page).to have_link(nil, href: I18n.t("links.footer.faq.url"))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -91,7 +91,7 @@ describe 'Getting help:' do
|
|||
end
|
||||
|
||||
def have_help_button
|
||||
have_link('Aide', href: FAQ_URL)
|
||||
have_link('Aide', href: I18n.t("links.footer.faq.url"))
|
||||
end
|
||||
|
||||
def have_help_menu
|
||||
|
|
|
@ -23,7 +23,7 @@ describe 'layouts/_header.html.haml', type: :view do
|
|||
it { is_expected.to_not have_css(".account-btn") }
|
||||
|
||||
it 'displays the Help link' do
|
||||
expect(subject).to have_link('Aide', href: FAQ_URL)
|
||||
expect(subject).to have_link('Aide', href: I18n.t("links.footer.faq.url"))
|
||||
end
|
||||
|
||||
context 'when on a procedure page' do
|
||||
|
@ -48,7 +48,7 @@ describe 'layouts/_header.html.haml', type: :view do
|
|||
it { is_expected.to have_selector(:button, user.email, class: "account-btn") }
|
||||
|
||||
it 'displays the Help button' do
|
||||
expect(subject).to have_link("Aide", href: FAQ_URL)
|
||||
expect(subject).to have_link("Aide", href: I18n.t("links.footer.faq.url"))
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue