9 lines
259 B
Ruby
9 lines
259 B
Ruby
|
module NoteInteractionHelpers
|
||
|
def open_more_actions_dropdown(note)
|
||
|
note_element = find("#note_#{note.id}")
|
||
|
|
||
|
note_element.find('.more-actions-toggle').trigger('click')
|
||
|
note_element.find('.more-actions .dropdown-menu li', match: :first)
|
||
|
end
|
||
|
end
|