Merge pull request #9588 from demarches-simplifiees/fix-breadcrumb-ldu

[Fix Administrateur] Retirer le soulignement du dernier item du fil d'ariane
This commit is contained in:
Lisa Durand 2023-10-10 15:27:45 +00:00 committed by GitHub
commit 1fb8bbf0ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 6 deletions

View file

@ -10,8 +10,7 @@
- steps.each.with_index do |step, i| - steps.each.with_index do |step, i|
- if i == steps.size - 1 - if i == steps.size - 1
%li{ aria: { current: "page" } } %li= link_to step[0], '', { aria: { current: "page" } , class: 'fr-breadcrumb__link' }
%span.fr-breadcrumb__link= step[0]
- else - else
%li= link_to step[0], step[1], class: 'fr-breadcrumb__link' %li= link_to step[0], step[1], class: 'fr-breadcrumb__link'

View file

@ -44,7 +44,7 @@ describe 'As an administrateur, I want to manage the procedures attestation',
# click CTA for publication screen # click CTA for publication screen
click_on("Publier") click_on("Publier")
# validate publication # validate publication
click_on("Publier") within('form') { click_on 'Publier' }
# now process to disable attestation # now process to disable attestation
find_attestation_card.click find_attestation_card.click

View file

@ -41,7 +41,7 @@ describe 'Publishing a procedure', js: true, retry: 3 do
scenario 'an admin can publish it' do scenario 'an admin can publish it' do
expect(find_field('procedure_path').value).to eq procedure.path expect(find_field('procedure_path').value).to eq procedure.path
fill_in 'lien_site_web', with: 'http://some.website' fill_in 'lien_site_web', with: 'http://some.website'
click_on 'Publier' within('form') { click_on 'Publier' }
expect(page).to have_text('Démarche publiée') expect(page).to have_text('Démarche publiée')
end end

View file

@ -228,7 +228,7 @@ describe 'fetch API Particulier Data', js: true, retry: 3 do
find('#publish-procedure-link').click find('#publish-procedure-link').click
expect(find_field('procedure_path').value).to eq procedure.path expect(find_field('procedure_path').value).to eq procedure.path
fill_in 'lien_site_web', with: 'http://some.website' fill_in 'lien_site_web', with: 'http://some.website'
click_on 'Publier' within('form') { click_on 'Publier' }
expect(page).to have_text('Démarche publiée') expect(page).to have_text('Démarche publiée')
end end

View file

@ -252,7 +252,7 @@ describe 'The routing with rules', js: true, retry: 3 do
click_on procedure.libelle click_on procedure.libelle
find('#publish-procedure-link').click find('#publish-procedure-link').click
fill_in 'lien_site_web', with: 'http://some.website' fill_in 'lien_site_web', with: 'http://some.website'
click_on 'Publier' within('form') { click_on 'Publier' }
expect(page).to have_text('Démarche publiée') expect(page).to have_text('Démarche publiée')
end end