specs: wait for ajax requests completion where required

This commit is contained in:
Pierre de La Morinerie 2018-08-01 11:01:46 +02:00
parent 270384f8dd
commit 8d9b65e556

View file

@ -78,6 +78,8 @@ feature 'As a User I wanna create a dossier' do
page.find_by_id('dossier-siret').set siret
page.find_by_id('submit-siret').click
wait_for_ajax
expect(page).to have_css('#recap-info-entreprise')
find(:css, "#dossier_autorisation_donnees[value='1']").set(true)
page.find_by_id('etape_suivante').click