Merge pull request #10680 from demarches-simplifiees/a11y-fix-demarche-header

Refonte du menu d'aide
This commit is contained in:
Colin Darie 2024-09-09 14:17:50 +00:00 committed by GitHub
commit ab3139c2ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 130 additions and 81 deletions

View file

@ -18,7 +18,7 @@ describe 'Getting help:' do
expect(page).to have_help_menu
end
within('.help-dropdown') do
within('.help-content') do
expect(page).to have_content(procedure.service.email)
expect(page).to have_content(procedure.service.telephone)
expect(page).to have_link(nil, href: I18n.t("links.common.faq.url"))
@ -51,7 +51,7 @@ describe 'Getting help:' do
expect(page).to have_help_menu
end
within('.help-dropdown') do
within('.help-content') 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: I18n.t("links.common.faq.url"))
@ -69,7 +69,7 @@ describe 'Getting help:' do
expect(page).to have_help_menu
end
within('.help-dropdown') do
within('.help-content') do
expect(page).to have_link(nil, href: messagerie_dossier_path(dossier))
expect(page).to have_link(nil, href: I18n.t("links.common.faq.url"))
end
@ -97,6 +97,6 @@ describe 'Getting help:' do
end
def have_help_menu
have_selector('.help-dropdown')
have_selector("#help-menu")
end
end