diff --git a/app/views/shared/kaminari/_first_page.html.haml b/app/views/shared/kaminari/_first_page.html.haml index 4a781e745..724f52f9f 100644 --- a/app/views/shared/kaminari/_first_page.html.haml +++ b/app/views/shared/kaminari/_first_page.html.haml @@ -1,2 +1,2 @@ %li - = link_to_unless current_page.first?, t('views.pagination.first').html_safe, url, remote: remote, class: 'fr-pagination__link fr-pagination__link--first', 'aria-disabled': true, title: 'Première page', role: 'link' + = link_to_unless current_page.first?, t('views.pagination.first').html_safe, url, remote: remote, class: 'fr-pagination__link fr-pagination__link--first', title: 'Première page', role: 'link' diff --git a/app/views/shared/kaminari/_last_page.html.haml b/app/views/shared/kaminari/_last_page.html.haml index 7f4bfd218..af2811abf 100644 --- a/app/views/shared/kaminari/_last_page.html.haml +++ b/app/views/shared/kaminari/_last_page.html.haml @@ -1,2 +1,2 @@ %li - = link_to_unless current_page.last?, t('views.pagination.last').html_safe, url, rel: 'next', remote: remote, class: 'fr-pagination__link fr-pagination__link--last', 'aria-disabled': true, title: "Dernière page", role: 'link' + = link_to_unless current_page.last?, t('views.pagination.last').html_safe, url, rel: 'next', remote: remote, class: 'fr-pagination__link fr-pagination__link--last', title: "Dernière page", role: 'link' diff --git a/app/views/shared/kaminari/_next_page.html.haml b/app/views/shared/kaminari/_next_page.html.haml index 405bbaca9..54531dd60 100644 --- a/app/views/shared/kaminari/_next_page.html.haml +++ b/app/views/shared/kaminari/_next_page.html.haml @@ -1,2 +1,2 @@ %li - = link_to_unless current_page.last?, t('views.pagination.next').html_safe, url, rel: 'next', remote: remote, class: 'fr-pagination__link fr-pagination__link--next fr-pagination__link--lg-label', 'aria-disabled': true, role: 'link' + = link_to_unless current_page.last?, t('views.pagination.next').html_safe, url, rel: 'next', remote: remote, class: 'fr-pagination__link fr-pagination__link--next fr-pagination__link--lg-label', role: 'link' diff --git a/app/views/shared/kaminari/_prev_page.html.haml b/app/views/shared/kaminari/_prev_page.html.haml index a62f6dc73..265419213 100644 --- a/app/views/shared/kaminari/_prev_page.html.haml +++ b/app/views/shared/kaminari/_prev_page.html.haml @@ -1,2 +1,2 @@ %li - = link_to_unless current_page.first?, t('views.pagination.previous').html_safe, url, rel: 'prev', remote: remote, class: 'fr-pagination__link fr-pagination__link--prev fr-pagination__link--lg-label', 'aria-disabled': true, role: 'link' + = link_to_unless current_page.first?, t('views.pagination.previous').html_safe, url, rel: 'prev', remote: remote, class: 'fr-pagination__link fr-pagination__link--prev fr-pagination__link--lg-label', role: 'link' diff --git a/spec/system/users/list_dossiers_spec.rb b/spec/system/users/list_dossiers_spec.rb index 678e2d827..5d4cc3eac 100644 --- a/spec/system/users/list_dossiers_spec.rb +++ b/spec/system/users/list_dossiers_spec.rb @@ -58,7 +58,7 @@ describe 'user access to the list of their dossiers', js: true do context 'when there is more than one page' do let(:dossiers_per_page) { 2 } - scenario 'the user can navigate through the other pages', chrome: true do + scenario 'the user can navigate through the other pages' do expect(page).not_to have_link(dossier_en_instruction.procedure.libelle) page.click_link("Suivant") page.click_link("Suivant")