From 8786b6028565782413cc62a6e14f2555f38c14de Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Tue, 15 Feb 2022 15:04:41 +0100 Subject: [PATCH] specs: fix flaky "dossier brouillon" spec MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When filling all the champs of a dossier, we skip the "Address" champ (because it would attempt to request a blocked URL). But that means the "Yes/No" radio buttons may be under the sticky bottom bar, and thus not register the click – which makes the test fail. Fix the issue by manually scrolling to the radio buttons. --- spec/system/users/brouillon_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/system/users/brouillon_spec.rb b/spec/system/users/brouillon_spec.rb index 58eb565b7..d590b43ed 100644 --- a/spec/system/users/brouillon_spec.rb +++ b/spec/system/users/brouillon_spec.rb @@ -23,6 +23,7 @@ describe 'The user' do choose('Madame') fill_in('email', with: 'loulou@yopmail.com') fill_in('phone', with: '0123456789') + scroll_to(find_field('Non'), align: :center) choose('Non') choose('val2') check('val1')