mirror of
https://github.com/discourse/discourse.git
synced 2026-08-11 13:35:20 -05: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