summaryrefslogtreecommitdiff
path: root/qa/qa/specs/features/browser_ui/2_plan/issue/filter_issue_comments_spec.rb
diff options
context:
space:
mode:
authorRamya Authappan <rauthappan@gitlab.com>2018-10-30 07:48:49 +0000
committerGrzegorz Bizon <grzegorz@gitlab.com>2018-10-30 07:48:49 +0000
commit75847b55a1559dea201177c515e67015efcd1c9c (patch)
tree034da472bf7a5f081f7f6ad523a9227e51d6f043 /qa/qa/specs/features/browser_ui/2_plan/issue/filter_issue_comments_spec.rb
parentd0b746d8d68665c6359fddbe958e0c818a36f3bb (diff)
downloadgitlab-ce-75847b55a1559dea201177c515e67015efcd1c9c.tar.gz
Adding tests for filtering activities/comments in issues
Diffstat (limited to 'qa/qa/specs/features/browser_ui/2_plan/issue/filter_issue_comments_spec.rb')
-rw-r--r--qa/qa/specs/features/browser_ui/2_plan/issue/filter_issue_comments_spec.rb34
1 files changed, 34 insertions, 0 deletions
diff --git a/qa/qa/specs/features/browser_ui/2_plan/issue/filter_issue_comments_spec.rb b/qa/qa/specs/features/browser_ui/2_plan/issue/filter_issue_comments_spec.rb
new file mode 100644
index 00000000000..24877d937d2
--- /dev/null
+++ b/qa/qa/specs/features/browser_ui/2_plan/issue/filter_issue_comments_spec.rb
@@ -0,0 +1,34 @@
+# frozen_string_literal: true
+
+module QA
+ context 'Plan' do
+ describe 'filter issue comments activities' do
+ let(:issue_title) { 'issue title' }
+
+ it 'user filters comments and activites in an issue' do
+ Runtime::Browser.visit(:gitlab, Page::Main::Login)
+ Page::Main::Login.act { sign_in_using_credentials }
+
+ Factory::Resource::Issue.fabricate! do |issue|
+ issue.title = issue_title
+ end
+
+ expect(page).to have_content(issue_title)
+
+ Page::Project::Issue::Show.perform do |show_page|
+ show_page.select_comments_only_filter
+ show_page.comment('/confidential')
+ show_page.comment('My own comment')
+
+ expect(show_page).not_to have_content("made the issue confidential")
+ expect(show_page).to have_content("My own comment")
+
+ show_page.select_all_activities_filter
+
+ expect(show_page).to have_content("made the issue confidential")
+ expect(show_page).to have_content("My own comment")
+ end
+ end
+ end
+ end
+end