fix specs
This commit is contained in:
parent
7d7fbab5b2
commit
d07c8ce19f
4 changed files with 4 additions and 4 deletions
|
@ -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