Skip to content

Commit

Permalink
Better fix for a flickering test (date-related)
Browse files Browse the repository at this point in the history
Related to d94ea36. Use :enter instead of :right to trigger a
keyboard event to get the internal state of flatpickr updated. It seems
to work better.
  • Loading branch information
cbliard committed Jan 3, 2025
1 parent 9a9f73e commit adb75a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/support/components/datepicker/datepicker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit adb75a5

Please sign in to comment.