2019-07-25 01:27:42 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-06-07 14:33:50 -04:00
|
|
|
module NoteInteractionHelpers
|
2022-02-15 10:15:04 -05:00
|
|
|
include MergeRequestDiffHelpers
|
|
|
|
|
2017-06-07 14:33:50 -04:00
|
|
|
def open_more_actions_dropdown(note)
|
2022-02-15 10:15:04 -05:00
|
|
|
note_element = find_by_scrolling("#note_#{note.id}")
|
2017-06-07 14:33:50 -04:00
|
|
|
|
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
|