mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user