debian-mirror-gitlab/spec/support/helpers/note_interaction_helpers.rb

9 lines
248 B
Ruby
Raw Normal View History

2017-09-10 17:25:29 +05:30
module NoteInteractionHelpers
def open_more_actions_dropdown(note)
note_element = find("#note_#{note.id}")
2018-03-17 18:26:18 +05:30
note_element.find('.more-actions-toggle').click
2017-09-10 17:25:29 +05:30
note_element.find('.more-actions .dropdown-menu li', match: :first)
end
end