体验新版 GitCode,发现更多精彩内容 >>
module NoteInteractionHelpers def open_more_actions_dropdown(note) note_element = find("#note_#{note.id}") note_element.find('.more-actions').click note_element.find('.more-actions .dropdown-menu li', match: :first) end end