mirror of
https://github.com/discourse/discourse.git
synced 2025-03-20 21:05:53 +08:00
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:
parent
78268ca767
commit
7ced4fccc7
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user