diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-08-13 01:38:25 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-08-13 01:38:25 +0300 |
commit | dff60db28d6c8506f655225b9b3dab2b9b04592a (patch) | |
tree | db63654b54da8a91c75849eaa749789cddeba1fb | |
parent | 1852dfa3ae21adfb63f5461844fe3b125999ab0b (diff) |
Look for a button on issues
-rw-r--r-- | spec/support/features/reportable_note_shared_examples.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/support/features/reportable_note_shared_examples.rb b/spec/support/features/reportable_note_shared_examples.rb index be7d092d28c..e2158b8ed34 100644 --- a/spec/support/features/reportable_note_shared_examples.rb +++ b/spec/support/features/reportable_note_shared_examples.rb @@ -16,13 +16,12 @@ shared_examples 'reportable note' do |type| open_dropdown(dropdown) if type == 'issue' - expect(dropdown).to have_button('Edit comment') expect(dropdown).to have_button('Delete comment') else - expect(dropdown).to have_link('Edit comment') expect(dropdown).to have_link('Delete comment') end + expect(dropdown).to have_button('Edit comment') expect(dropdown).to have_link('Report as abuse', href: abuse_report_path) end |