discourse/spec/system/page_objects/components/legacy_header_dropdown.rb
Alan Guo Xiang Tan c11fd4fdf9
FIX: Override navigation menu to "legacy" via query param not working (#20402)
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
2023-02-22 06:43:14 +08:00

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