mirror of
https://github.com/discourse/discourse.git
synced 2025-05-06 03:04:44 +08:00

What does this change do? This commit the client to override the navigation menu setting configured by the site temporarily based on the value of the `navigation_menu` query param. The new query param replaces the old `enable_sidebar` query param. Why do we need this change? The motivation here is to allow theme maintainers to quickly preview what the site will look like with the various navigation menu site setting.
16 lines
301 B
Ruby
16 lines
301 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-panel.drop-down")
|
|
end
|
|
end
|
|
end
|
|
end
|