fix specs

This commit is contained in:
Lisa Durand 2023-10-10 16:51:06 +02:00
parent 7d7fbab5b2
commit d07c8ce19f
4 changed files with 4 additions and 4 deletions

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