Update sepc files

This commit is contained in:
Corinne Durrmeyer 2024-08-05 15:37:00 +02:00
parent bbfcb689d3
commit 4e1332431b
No known key found for this signature in database
GPG key ID: DDC049DDA35585B6
3 changed files with 7 additions and 7 deletions

View file

@ -101,7 +101,7 @@ describe 'wcag rules for usager', js: true do
scenario 'commencer page, help dropdown' do
visit commencer_path(path: procedure.reload.path)
page.find("#help-menu_button").click
page.find(".fr-header__body .help-btn").click
test_expect_axe_clean_without_main_navigation
end
end

View file

@ -16,7 +16,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"))
@ -49,7 +49,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"))
@ -67,7 +67,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
@ -95,6 +95,6 @@ describe 'Getting help:' do
end
def have_help_menu
have_selector('.help-dropdown')
have_selector("#help-menu")
end
end

View file

@ -36,7 +36,7 @@ describe 'layouts/_header', type: :view do
end
it 'displays the Help dropdown menu' do
expect(subject).to have_css(".help-dropdown")
expect(subject).to have_selector("#help-menu")
end
end
end
@ -65,7 +65,7 @@ describe 'layouts/_header', type: :view do
it { is_expected.to have_selector(:button, user.email, class: "account-btn") }
it 'displays the Help dropdown menu' do
expect(subject).to have_css(".help-dropdown")
expect(subject).to have_selector("#help-menu")
end
end
end