diff options
author | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-06-07 18:33:50 +0000 |
---|---|---|
committer | Clement Ho <clemmakesapps@gmail.com> | 2017-06-07 18:33:50 +0000 |
commit | 32cac597275706930b221b19fb20b29ccebc7130 (patch) | |
tree | eff1772526935597f6539eec340d0c29f0049fc7 /spec/support/helpers | |
parent | 8bd232d43bb2c0c8d5b5b4e92609adcfbda9a008 (diff) | |
download | gitlab-ce-32cac597275706930b221b19fb20b29ccebc7130.tar.gz |
Added more actions and report as abuse to all notes
Diffstat (limited to 'spec/support/helpers')
-rw-r--r-- | spec/support/helpers/note_interaction_helpers.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/support/helpers/note_interaction_helpers.rb b/spec/support/helpers/note_interaction_helpers.rb new file mode 100644 index 00000000000..551c759133c --- /dev/null +++ b/spec/support/helpers/note_interaction_helpers.rb @@ -0,0 +1,8 @@ +module NoteInteractionHelpers + def open_more_actions_dropdown(note) + note_element = find("#note_#{note.id}") + + note_element.find('.more-actions').click + note_element.find('.more-actions .dropdown-menu li', match: :first) + end +end |