DEV: allows to fill in input of type number in specs (#31051)

The system spec helper was not supporting this case.

You can now properly do: `form.field("foo").fill_in(800)` when the input
is of type `number`.
This commit is contained in:
Joffrey JAFFEUX
2025-01-29 13:11:03 +01:00
committed by GitHub
parent cfa281a697
commit 049b6b8f54

View File

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