Welcome to mirror list, hosted at ThFree Co, Russian Federation.

note_interaction_helpers.rb « helpers « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fa2705a64fa13fbd1510f5a887d50898c9ff1277 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# 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