Update sepc files
This commit is contained in:
parent
bbfcb689d3
commit
4e1332431b
3 changed files with 7 additions and 7 deletions
|
@ -101,7 +101,7 @@ describe 'wcag rules for usager', js: true do
|
||||||
scenario 'commencer page, help dropdown' do
|
scenario 'commencer page, help dropdown' do
|
||||||
visit commencer_path(path: procedure.reload.path)
|
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
|
test_expect_axe_clean_without_main_navigation
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -16,7 +16,7 @@ describe 'Getting help:' do
|
||||||
expect(page).to have_help_menu
|
expect(page).to have_help_menu
|
||||||
end
|
end
|
||||||
|
|
||||||
within('.help-dropdown') do
|
within('.help__content') do
|
||||||
expect(page).to have_content(procedure.service.email)
|
expect(page).to have_content(procedure.service.email)
|
||||||
expect(page).to have_content(procedure.service.telephone)
|
expect(page).to have_content(procedure.service.telephone)
|
||||||
expect(page).to have_link(nil, href: I18n.t("links.common.faq.url"))
|
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
|
expect(page).to have_help_menu
|
||||||
end
|
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.email)
|
||||||
expect(page).to have_content(dossier.procedure.service.telephone)
|
expect(page).to have_content(dossier.procedure.service.telephone)
|
||||||
expect(page).to have_link(nil, href: I18n.t("links.common.faq.url"))
|
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
|
expect(page).to have_help_menu
|
||||||
end
|
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: messagerie_dossier_path(dossier))
|
||||||
expect(page).to have_link(nil, href: I18n.t("links.common.faq.url"))
|
expect(page).to have_link(nil, href: I18n.t("links.common.faq.url"))
|
||||||
end
|
end
|
||||||
|
@ -95,6 +95,6 @@ describe 'Getting help:' do
|
||||||
end
|
end
|
||||||
|
|
||||||
def have_help_menu
|
def have_help_menu
|
||||||
have_selector('.help-dropdown')
|
have_selector("#help-menu")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -36,7 +36,7 @@ describe 'layouts/_header', type: :view do
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'displays the Help dropdown menu' do
|
it 'displays the Help dropdown menu' do
|
||||||
expect(subject).to have_css(".help-dropdown")
|
expect(subject).to have_selector("#help-menu")
|
||||||
end
|
end
|
||||||
end
|
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 { is_expected.to have_selector(:button, user.email, class: "account-btn") }
|
||||||
|
|
||||||
it 'displays the Help dropdown menu' do
|
it 'displays the Help dropdown menu' do
|
||||||
expect(subject).to have_css(".help-dropdown")
|
expect(subject).to have_selector("#help-menu")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue