From adb75a5c860f032a4dc397411c8c4d84c123a604 Mon Sep 17 00:00:00 2001 From: Christophe Bliard Date: Fri, 3 Jan 2025 14:45:05 +0100 Subject: [PATCH] Better fix for a flickering test (date-related) Related to d94ea36eca5. Use :enter instead of :right to trigger a keyboard event to get the internal state of flatpickr updated. It seems to work better. --- spec/support/components/datepicker/datepicker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/support/components/datepicker/datepicker.rb b/spec/support/components/datepicker/datepicker.rb index ebec0c8b4782..01ef8d1f311b 100644 --- a/spec/support/components/datepicker/datepicker.rb +++ b/spec/support/components/datepicker/datepicker.rb @@ -58,7 +58,7 @@ def select_year(value) flatpickr_container .first(".numInput.cur-year") .fill_in(with: value) - .send_keys :right # to trigger a keyboard event to get the internal state of flatpickr updated + .send_keys :enter # to trigger a keyboard event to get the internal state of flatpickr updated end end