mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-29 21:17:17 +00:00
Modify choose_today_from_datepicker to avoid possible ambiguous match with the find
This commit is contained in:
@@ -4,7 +4,8 @@ module Features
|
||||
module DatepickerHelper
|
||||
def choose_today_from_datepicker
|
||||
within(".flatpickr-calendar.open") do
|
||||
find('.shortcut-buttons-flatpickr-button').click
|
||||
# Now that we have added the Close button, find the first button to avoid any ambiguous match
|
||||
find('.shortcut-buttons-flatpickr-buttons > button:nth-child(1)').click
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user