gitlab-org--gitlab-foss/spec/support/helpers/note_interaction_helpers.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
327 B
Ruby
Raw Normal View History

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