discourse/spec/system/page_objects/components/sidebar.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
330 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module PageObjects
module Components
class Sidebar < PageObjects::Components::Base
def visible?
page.has_css?("#d-sidebar")
end
def has_category_section_link?(category)
page.has_link?(category.name, class: "sidebar-section-link")
end
end
end
end