debian-mirror-gitlab/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
312 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
2023-07-09 08:55:56 +05:30
note_element.find('.more-actions li', match: :first)
2017-09-10 17:25:29 +05:30
end
end