mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-05 22:26:07 +00:00
Confirm input changed by pressing enter key
This commit is contained in:
committed by
Konrad
parent
ea76615763
commit
263b36d1d9
@@ -700,6 +700,7 @@ describe '
|
||||
datetime = Time.zone.at(Time.zone.local(2040, 10, 17, 0o6, 0o0, 0o0))
|
||||
input = find(".flatpickr-calendar.open .flatpickr-minute")
|
||||
input.send_keys datetime.strftime("%M").to_s.strip
|
||||
input.send_keys :enter
|
||||
expect(page).to have_content "You have unsaved changes"
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user