mirror of
https://github.com/discourse/discourse.git
synced 2024-12-06 00:33:43 +08:00
16 lines
338 B
Ruby
16 lines
338 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__body")
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|