From 4aee0e056d574d05ef7974efce59c669bcb27c49 Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Wed, 10 May 2023 13:54:12 +0200 Subject: [PATCH] try to fix autosave spec --- spec/system/users/brouillon_spec.rb | 2 ++ 1 file changed, 2 insertions(+) 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')