2017-06-07 14:33:50 -04:00
|
|
|
module NoteInteractionHelpers
|
|
|
|
def open_more_actions_dropdown(note)
|
|
|
|
note_element = find("#note_#{note.id}")
|
|
|
|
|
2017-09-12 17:43:28 -04:00
|
|
|
note_element.find('.more-actions-toggle').click
|
2017-06-07 14:33:50 -04:00
|
|
|
note_element.find('.more-actions .dropdown-menu li', match: :first)
|
|
|
|
end
|
|
|
|
end
|