mirror of
https://github.com/discourse/discourse.git
synced 2024-12-21 02:33:59 +08:00
cf8b81771f
DropdownMenu component is meant as a way to describe the content of menus. Syntax: ``` <DropdownMenu as |dm|> <dm.item class="test"> First </dm.item> <dm.divider class="foo" /> <dm.item class="bar"> Second </dm.item> </DropdownMenu> ```
16 lines
340 B
Ruby
16 lines
340 B
Ruby
# frozen_string_literal: true
|
|
|
|
module PageObjects
|
|
module Components
|
|
class BookmarkMenu < PageObjects::Components::Base
|
|
def click_menu_option(option_id)
|
|
find(".bookmark-menu__row[data-menu-option-id='#{option_id}']").click
|
|
end
|
|
|
|
def open?
|
|
has_css?(".bookmark-menu-content")
|
|
end
|
|
end
|
|
end
|
|
end
|