mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 07:43:43 +08:00
c11fd4fdf9
When the `navigation_menu` site setting has been set to `sidebar` or
`header dropdown`, overriding the site setting via the `navigation_menu`
query params did not work.
Follow-up to c47015b861
16 lines
308 B
Ruby
16 lines
308 B
Ruby
# frozen_string_literal: true
|
|
|
|
module PageObjects
|
|
module Components
|
|
class SidebarHeaderDropdown < PageObjects::Components::Base
|
|
def click
|
|
page.find(".hamburger-dropdown").click
|
|
end
|
|
|
|
def visible?
|
|
page.has_css?(".sidebar-hamburger-dropdown")
|
|
end
|
|
end
|
|
end
|
|
end
|