specs: wait for ajax requests completion where required
This commit is contained in:
parent
270384f8dd
commit
8d9b65e556
1 changed files with 2 additions and 0 deletions
|
@ -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('dossier-siret').set siret
|
||||||
page.find_by_id('submit-siret').click
|
page.find_by_id('submit-siret').click
|
||||||
|
wait_for_ajax
|
||||||
|
|
||||||
expect(page).to have_css('#recap-info-entreprise')
|
expect(page).to have_css('#recap-info-entreprise')
|
||||||
find(:css, "#dossier_autorisation_donnees[value='1']").set(true)
|
find(:css, "#dossier_autorisation_donnees[value='1']").set(true)
|
||||||
page.find_by_id('etape_suivante').click
|
page.find_by_id('etape_suivante').click
|
||||||
|
|
Loading…
Reference in a new issue