summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWalmyr Lima <walmyr@gitlab.com>2019-07-10 15:51:16 +0200
committerWalmyr Lima <walmyr@gitlab.com>2019-07-11 14:42:11 +0200
commit0b69edc1713dc0ac4dbaab7f6d900dfc8f4d9217 (patch)
tree1c81027b721a22182d8c97623f32a818d8640f79
parent253bb8db0c525fa93e75da59acea71034649bf11 (diff)
downloadgitlab-ce-0b69edc1713dc0ac4dbaab7f6d900dfc8f4d9217.tar.gz
Add new e2e test for adding and editing commentsqa/e2e-test-issue-comment
...on issues.
-rw-r--r--qa/qa/specs/features/browser_ui/2_plan/issue/comment_issue_spec.rb31
1 files changed, 31 insertions, 0 deletions
diff --git a/qa/qa/specs/features/browser_ui/2_plan/issue/comment_issue_spec.rb b/qa/qa/specs/features/browser_ui/2_plan/issue/comment_issue_spec.rb
new file mode 100644
index 00000000000..a62a51b11f4
--- /dev/null
+++ b/qa/qa/specs/features/browser_ui/2_plan/issue/comment_issue_spec.rb
@@ -0,0 +1,31 @@
+# frozen_string_literal: true
+
+module QA
+ context 'Plan' do
+ describe 'Issue comments' do
+ it 'user comments on an issue and edits the comment' do
+ Runtime::Browser.visit(:gitlab, Page::Main::Login)
+ Page::Main::Login.act { sign_in_using_credentials }
+
+ issue = Resource::Issue.fabricate_via_api! do |issue|
+ issue.title = 'issue title'
+ end
+ issue.visit!
+
+ Page::Project::Issue::Show.perform do |issue_show_page|
+ first_version_of_comment = 'First version of the comment'
+ second_version_of_comment = 'Second version of the comment'
+
+ issue_show_page.comment(first_version_of_comment)
+
+ expect(issue_show_page).to have_content(first_version_of_comment)
+
+ issue_show_page.edit_comment(second_version_of_comment)
+
+ expect(issue_show_page).to have_content(second_version_of_comment)
+ expect(issue_show_page).not_to have_content(first_version_of_comment)
+ end
+ end
+ end
+ end
+end