mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 13:06:56 +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:
@ -84,7 +84,7 @@ module PageObjects
|
|||||||
|
|
||||||
def fill_in(value)
|
def fill_in(value)
|
||||||
case control_type
|
case control_type
|
||||||
when "input-text", "password"
|
when "input-text", "password", "input-date"
|
||||||
component.find("input").fill_in(with: value)
|
component.find("input").fill_in(with: value)
|
||||||
when "textarea", "composer"
|
when "textarea", "composer"
|
||||||
component.find("textarea").fill_in(with: value, visible: :all)
|
component.find("textarea").fill_in(with: value, visible: :all)
|
||||||
|
Reference in New Issue
Block a user