diff --git a/spec/system/users/brouillon_spec.rb b/spec/system/users/brouillon_spec.rb index 72ad8807e..4d3a21852 100644 --- a/spec/system/users/brouillon_spec.rb +++ b/spec/system/users/brouillon_spec.rb @@ -473,6 +473,7 @@ describe 'The user' do fill_in('texte obligatoire', with: 'a valid user input') wait_for_autosave + wait_until { champ_value_for('texte obligatoire') == 'a valid user input' } visit current_path 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 click_on 'Réessayer' wait_for_autosave + wait_until { champ_value_for('texte obligatoire') == 'a valid user input' } visit current_path expect(page).to have_field('texte obligatoire', with: 'a valid user input')