diff --git a/app/views/root/_footer.html.haml b/app/views/root/_footer.html.haml index 8c9248971..49f29d593 100644 --- a/app/views/root/_footer.html.haml +++ b/app/views/root/_footer.html.haml @@ -12,9 +12,9 @@ = link_to "beta.gouv.fr", "https://beta.gouv.fr", title: "le site de Beta.gouv.fr" %li = link_to "https://numerique.gouv.fr/", title: "DINUM", 'aria-label': 'DINUM' do - %span.footer-logo.footer-logo-dinum{ role: 'img' } + %span.footer-logo.footer-logo-dinum{ role: 'img', 'aria-label': 'Logo DINUM' } = link_to "https://beta.gouv.fr", title: "le site de Beta.gouv.fr", 'aria-label': 'beta.gouv.fr' do - %span.footer-logo.footer-logo-beta-gouv-fr{ role: 'img' } + %span.footer-logo.footer-logo-beta-gouv-fr{ role: 'img', 'aria-label': 'Logo beta.gouv.fr' } %span.footer-logo.footer-logo-france{ role: 'img', 'aria-label': 'République Française' } %li.footer-column diff --git a/spec/features/accessibilite/wcag_usager_spec.rb b/spec/features/accessibilite/wcag_usager_spec.rb index 30064e805..d54afe7ee 100644 --- a/spec/features/accessibilite/wcag_usager_spec.rb +++ b/spec/features/accessibilite/wcag_usager_spec.rb @@ -6,12 +6,12 @@ feature 'wcag rules for usager', js: true do context 'pages without the need to be logged in' do scenario 'homepage' do visit root_path - expect(page).to be_accessible.excluding ".footer-logo" + expect(page).to be_accessible end scenario 'sign_up page' do visit new_user_registration_path - expect(page).to be_accessible.excluding ".footer-logo" + expect(page).to be_accessible end scenario 'account confirmation page' do @@ -28,12 +28,12 @@ feature 'wcag rules for usager', js: true do scenario 'sign_in page' do visit new_user_session_path - expect(page).to be_accessible.excluding ".footer-logo", '#user_email' + expect(page).to be_accessible.excluding '#user_email' end scenario 'contact page' do visit contact_path - expect(page).to be_accessible.excluding ".footer-logo" + expect(page).to be_accessible end scenario 'commencer page' do