try to fix autosave spec
This commit is contained in:
parent
bc56f14a72
commit
4aee0e056d
1 changed files with 2 additions and 0 deletions
|
@ -473,6 +473,7 @@ describe 'The user' do
|
||||||
|
|
||||||
fill_in('texte obligatoire', with: 'a valid user input')
|
fill_in('texte obligatoire', with: 'a valid user input')
|
||||||
wait_for_autosave
|
wait_for_autosave
|
||||||
|
wait_until { champ_value_for('texte obligatoire') == 'a valid user input' }
|
||||||
|
|
||||||
visit current_path
|
visit current_path
|
||||||
expect(page).to have_field('texte obligatoire', with: 'a valid user input')
|
expect(page).to have_field('texte obligatoire', with: 'a valid user input')
|
||||||
|
@ -492,6 +493,7 @@ describe 'The user' do
|
||||||
allow_any_instance_of(Users::DossiersController).to receive(:update).and_call_original
|
allow_any_instance_of(Users::DossiersController).to receive(:update).and_call_original
|
||||||
click_on 'Réessayer'
|
click_on 'Réessayer'
|
||||||
wait_for_autosave
|
wait_for_autosave
|
||||||
|
wait_until { champ_value_for('texte obligatoire') == 'a valid user input' }
|
||||||
|
|
||||||
visit current_path
|
visit current_path
|
||||||
expect(page).to have_field('texte obligatoire', with: 'a valid user input')
|
expect(page).to have_field('texte obligatoire', with: 'a valid user input')
|
||||||
|
|
Loading…
Add table
Reference in a new issue