demarches-normaliennes/spec
Pierre de La Morinerie b466fa7878 spec: ensure checkbox is visible before clicking it
There's a random failure in this spec, where the CI triggers this error:

> Failure/Error: check('checkbox')
>     
>     Selenium::WebDriver::Error::ElementClickInterceptedError:
>       element click intercepted: Element <input required="required" type="checkbox" value="on" name="dossier[champs_attributes][7][value]" id="dossier_champs_attributes_7_value"> is not clickable at point (205, 892). Other element would receive the click: <div class="send-dossier-actions-bar">...</div>

That's because the checkbox is partially overlapped by the sticky
action bar at the bottom of the screen – but only _some of the time_.

This commit attempts to fix the issue by manually scrolling the checkbox
at the center of the screen before clicking it.
2021-10-01 00:33:57 +02:00
..
controllers fix #6495 2021-09-28 15:53:18 +02:00
factories fix(virus scan): prevent virus scans in specs 2021-09-07 14:21:48 +02:00
features spec: ensure checkbox is visible before clicking it 2021-10-01 00:33:57 +02:00
fixtures add schema validations 2021-09-22 12:08:24 +02:00
helpers add spec for archive weight estimation 2021-06-09 10:52:38 +02:00
jobs Prevent double processing of declarative dossiers 2021-06-04 17:55:40 +02:00
lib add schema validations 2021-09-22 12:08:24 +02:00
mailers fix(i18n): enable locale for email previews 2021-09-09 13:06:51 -05:00
middlewares specs: always require rails_helper 2020-03-31 12:48:32 +02:00
models ADD FILE_MAX_SIZE constant to set allow file size limit 2021-09-21 12:04:56 -05:00
policies policies: fix champ policy for guest users 2020-04-02 11:27:14 +02:00
serializers Add compatibility cadsatre layer with old API GEO 2021-05-24 11:57:00 +02:00
services add test to dossier_projection_service 2021-09-07 15:17:06 +02:00
support gems: remove smart_listing 2021-09-09 09:58:41 -05:00
views feat(dossier): add dossier transfers UI 2021-09-08 15:10:43 +02:00
rails_helper.rb replace deprecated axe-matchers by axe-core-spec 2021-08-24 08:09:17 -05:00
spec_helper.rb Chore(test): enable rspec only-failures support 2021-04-15 14:17:39 +02:00