mirror of
https://github.com/discourse/discourse.git
synced 2025-03-25 01:35:36 +08: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…
x
Reference in New Issue
Block a user