mirror of
https://github.com/discourse/discourse.git
synced 2025-03-04 10:19:40 +00: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}']")
|
component.find(".select-kit-collection li[data-name='#{name}']")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def has_option_value?(value)
|
||||||
|
component.find(".select-kit-collection li[data-value='#{value}']")
|
||||||
|
end
|
||||||
|
|
||||||
def expand
|
def expand
|
||||||
collapsed_component.find(":not(.is-expanded) .select-kit-header", visible: :all).click
|
collapsed_component.find(":not(.is-expanded) .select-kit-header", visible: :all).click
|
||||||
expanded_component
|
expanded_component
|
||||||
|
Loading…
x
Reference in New Issue
Block a user