specs: make checkbox click cleaner

This commit is contained in:
Pierre de La Morinerie 2018-08-07 14:13:59 +02:00
parent f55f949b58
commit cc15b0bb28

View file

@ -81,7 +81,7 @@ feature 'As a User I wanna create a dossier' do
wait_for_ajax
expect(page).to have_css('#recap-info-entreprise')
find(:css, "#dossier_autorisation_donnees[value='1']").set(true)
check 'dossier_autorisation_donnees'
page.find_by_id('etape_suivante').click
expect(page).to have_current_path(users_dossier_carte_path(procedure_with_siret.dossiers.last.id.to_s))
page.find_by_id('etape_suivante').click