DEV: Added visible/hidden methods on the SelectKit page component (#23018)

This commit is contained in:
Sérgio Saquetim 2023-08-08 18:45:04 -03:00 committed by GitHub
parent 3fcb9a6481
commit 64c9cded17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,14 @@ module PageObjects
find(@context)
end
def visible?
has_css?(@context)
end
def hidden?
has_no_css?(@context)
end
def expanded_component
expand_if_needed
find(@context + ".is-expanded")