diff --git a/spec/system/page_objects/components/select_kit.rb b/spec/system/page_objects/components/select_kit.rb index 8228d65b9be..6d868d786b8 100644 --- a/spec/system/page_objects/components/select_kit.rb +++ b/spec/system/page_objects/components/select_kit.rb @@ -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")