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
|
@ -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…
Add table
Add a link
Reference in a new issue