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:
commit
1fb8bbf0ef
5 changed files with 5 additions and 6 deletions
|
@ -10,8 +10,7 @@
|
|||
|
||||
- steps.each.with_index do |step, i|
|
||||
- if i == steps.size - 1
|
||||
%li{ aria: { current: "page" } }
|
||||
%span.fr-breadcrumb__link= step[0]
|
||||
%li= link_to step[0], '', { aria: { current: "page" } , class: 'fr-breadcrumb__link' }
|
||||
- else
|
||||
%li= link_to step[0], step[1], class: 'fr-breadcrumb__link'
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ describe 'As an administrateur, I want to manage the procedure’s attestation',
|
|||
# click CTA for publication screen
|
||||
click_on("Publier")
|
||||
# validate publication
|
||||
click_on("Publier")
|
||||
within('form') { click_on 'Publier' }
|
||||
|
||||
# now process to disable attestation
|
||||
find_attestation_card.click
|
||||
|
|
|
@ -41,7 +41,7 @@ describe 'Publishing a procedure', js: true, retry: 3 do
|
|||
scenario 'an admin can publish it' do
|
||||
expect(find_field('procedure_path').value).to eq procedure.path
|
||||
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')
|
||||
end
|
||||
|
|
|
@ -228,7 +228,7 @@ describe 'fetch API Particulier Data', js: true, retry: 3 do
|
|||
find('#publish-procedure-link').click
|
||||
expect(find_field('procedure_path').value).to eq procedure.path
|
||||
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')
|
||||
end
|
||||
|
|
|
@ -252,7 +252,7 @@ describe 'The routing with rules', js: true, retry: 3 do
|
|||
click_on procedure.libelle
|
||||
find('#publish-procedure-link').click
|
||||
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')
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue