spec: wait for the page to be rendered before checking values
This commit is contained in:
parent
d51cc8bfa2
commit
a3c0f3ccd6
1 changed files with 1 additions and 0 deletions
|
@ -42,6 +42,7 @@ feature 'The user' do
|
|||
# find('form input[type="file"]').set(Rails.root.join('spec/fixtures/files/white.png'))
|
||||
|
||||
click_on 'Enregistrer le brouillon'
|
||||
expect(page).to have_content('Votre brouillon a bien été sauvegardé')
|
||||
|
||||
# check data on the dossier
|
||||
expect(user_dossier.brouillon?).to be true
|
||||
|
|
Loading…
Add table
Reference in a new issue