try to fix autosave spec

This commit is contained in:
simon lehericey 2023-05-10 13:54:12 +02:00
parent bc56f14a72
commit 4aee0e056d

View file

@ -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')