gitlab-org--gitlab-foss/spec/support/helpers/note_interaction_helpers.rb
2017-06-07 18:33:50 +00:00

8 lines
241 B
Ruby

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