debian-mirror-gitlab/spec/support/helpers/note_interaction_helpers.rb
2019-10-12 21:52:04 +05:30

10 lines
279 B
Ruby

# frozen_string_literal: true
module NoteInteractionHelpers
def open_more_actions_dropdown(note)
note_element = find("#note_#{note.id}")
note_element.find('.more-actions-toggle').click
note_element.find('.more-actions .dropdown-menu li', match: :first)
end
end