specs: fix flaky "dossier brouillon" spec
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.
This commit is contained in:
parent
c5418e1c52
commit
8786b60285
1 changed files with 1 additions and 0 deletions
|
@ -23,6 +23,7 @@ describe 'The user' do
|
||||||
choose('Madame')
|
choose('Madame')
|
||||||
fill_in('email', with: 'loulou@yopmail.com')
|
fill_in('email', with: 'loulou@yopmail.com')
|
||||||
fill_in('phone', with: '0123456789')
|
fill_in('phone', with: '0123456789')
|
||||||
|
scroll_to(find_field('Non'), align: :center)
|
||||||
choose('Non')
|
choose('Non')
|
||||||
choose('val2')
|
choose('val2')
|
||||||
check('val1')
|
check('val1')
|
||||||
|
|
Loading…
Reference in a new issue