mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 02:11:08 -06:00
DEV: Added visible/hidden methods on the SelectKit page component (#23018)
This commit is contained in:
parent
3fcb9a6481
commit
64c9cded17
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user