mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Added visible/hidden methods on the SelectKit page component (#23018)
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user