mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 21:10:17 +08:00
5db72f8daf
This allows users to preview the sidebar even when `SiteSetting.naviation_menu` is set to `false`.
16 lines
330 B
Ruby
16 lines
330 B
Ruby
# 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
|