mirror of
https://github.com/discourse/discourse.git
synced 2024-12-12 07:15:48 +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
309 B
Ruby
16 lines
309 B
Ruby
# frozen_string_literal: true
|
|
|
|
module PageObjects
|
|
module Components
|
|
class LegacyHeaderDropdown < PageObjects::Components::Base
|
|
def click
|
|
page.find(".hamburger-dropdown").click
|
|
end
|
|
|
|
def visible?
|
|
page.has_css?(".menu-container-general-links")
|
|
end
|
|
end
|
|
end
|
|
end
|