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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-08-13 01:38:25 +0300
committerFilipa Lacerda <filipa@gitlab.com>2017-08-13 01:38:25 +0300
commitdff60db28d6c8506f655225b9b3dab2b9b04592a (patch)
treedb63654b54da8a91c75849eaa749789cddeba1fb /spec/support/features
parent1852dfa3ae21adfb63f5461844fe3b125999ab0b (diff)
Look for a button on issues
Diffstat (limited to 'spec/support/features')
-rw-r--r--spec/support/features/reportable_note_shared_examples.rb3
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