mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
DEV: Added has_option_value
test to SelectKit system spec component (#26041)
This commit is contained in:
parent
475333c787
commit
81ede05005
|
@ -58,6 +58,10 @@ module PageObjects
|
|||
component.find(".select-kit-collection li[data-name='#{name}']")
|
||||
end
|
||||
|
||||
def has_option_value?(value)
|
||||
component.find(".select-kit-collection li[data-value='#{value}']")
|
||||
end
|
||||
|
||||
def expand
|
||||
collapsed_component.find(":not(.is-expanded) .select-kit-header", visible: :all).click
|
||||
expanded_component
|
||||
|
|
Loading…
Reference in New Issue
Block a user