FIX: Support date field in FormKit page object (#28872)

Adds support for `input-date` field when calling
`fill_in` on a FormKit field. Capybara supports passing
a Date object to `fill_in(with: value)` for date inputs,
so there is nothing fancy that needs to be done to support this.
This commit is contained in:
Martin Brennan 2024-09-12 13:35:33 +10:00 committed by GitHub
parent 78268ca767
commit 7ced4fccc7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -84,7 +84,7 @@ module PageObjects
def fill_in(value)
case control_type
when "input-text", "password"
when "input-text", "password", "input-date"
component.find("input").fill_in(with: value)
when "textarea", "composer"
component.find("textarea").fill_in(with: value, visible: :all)