summaryrefslogtreecommitdiff
path: root/qa/qa/page/project/issue/show.rb
diff options
context:
space:
mode:
authorSanad Liaquat <sliaquat@gitlab.com>2019-06-11 18:26:42 +0500
committerSanad Liaquat <sliaquat@gitlab.com>2019-06-11 21:51:08 +0500
commita154d9db2018e8034e3c0d25c34502aabf3701c0 (patch)
treeaa5f1aa0040ae5357e7ad547dae791d412d85e3c /qa/qa/page/project/issue/show.rb
parent3efd59b9208400f08867a72cce19a042dc0f1402 (diff)
downloadgitlab-ce-qa-nightly-107-fix-comment-on-issue-ce.tar.gz
Comment will select all activites filter by defaultqa-nightly-107-fix-comment-on-issue-ce
Diffstat (limited to 'qa/qa/page/project/issue/show.rb')
-rw-r--r--qa/qa/page/project/issue/show.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/qa/qa/page/project/issue/show.rb b/qa/qa/page/project/issue/show.rb
index 9df3db1bba0..77bad7481d8 100644
--- a/qa/qa/page/project/issue/show.rb
+++ b/qa/qa/page/project/issue/show.rb
@@ -29,7 +29,8 @@ module QA
# Adds a comment to an issue
# attachment option should be an absolute path
- def comment(text, attachment: nil)
+ def comment(text, attachment: nil, filter: :all_activities)
+ method("select_#{filter}_filter").call
fill_element :comment_input, text
unless attachment.nil?