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

13 lines
327 B
Ruby
Raw Normal View History

2019-10-12 21:52:04 +05:30
# frozen_string_literal: true
2017-09-10 17:25:29 +05:30
module NoteInteractionHelpers
2022-04-04 11:22:00 +05:30
include MergeRequestDiffHelpers
2017-09-10 17:25:29 +05:30
def open_more_actions_dropdown(note)
2022-04-04 11:22:00 +05:30
note_element = find_by_scrolling("#note_#{note.id}")
2017-09-10 17:25:29 +05:30
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