Skip to content

A platform for community discussion. Free, open, simple.

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

Martin Brennan7ced4fccc7d5
diff --git a/spec/system/page_objects/components/form_kit.rb b/spec/system/page_objects/components/form_kit.rb
index b4d226a460b..24fbd01bc88 100644
--- a/spec/system/page_objects/components/form_kit.rb
+++ b/spec/system/page_objects/components/form_kit.rb
@@ -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)