summaryrefslogtreecommitdiff
path: root/features/steps/shared/note.rb
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-01-12 18:10:06 +0100
committerRémy Coutable <remy@rymai.me>2016-01-13 11:59:10 +0100
commit9d7f88c12258e27a189e8229090920db0627e88b (patch)
treebcfde81f33a6b506152f415d3ac337d57a840f3d /features/steps/shared/note.rb
parentc4511a123401dcf9c2e1b3de732d18463fe9ba90 (diff)
downloadgitlab-ce-9d7f88c12258e27a189e8229090920db0627e88b.tar.gz
Show referenced MRs & Issues only when the current viewer can access them
Diffstat (limited to 'features/steps/shared/note.rb')
-rw-r--r--features/steps/shared/note.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/features/steps/shared/note.rb b/features/steps/shared/note.rb
index f6aabfefeff..6de58c6e2b1 100644
--- a/features/steps/shared/note.rb
+++ b/features/steps/shared/note.rb
@@ -106,6 +106,12 @@ module SharedNote
end
end
+ step 'I should see no notes at all' do
+ page.within('.notes') do
+ expect(page).to_not have_css('.note')
+ end
+ end
+
# Markdown
step 'I leave a comment with a header containing "Comment with a header"' do