DEV: Added `has_option_value` test to SelectKit system spec component (#26041)

This commit is contained in:
Sérgio Saquetim 2024-03-05 20:04:05 -03:00 committed by GitHub
parent 475333c787
commit 81ede05005
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -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