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:
authorWinnie Hellmann <winnie@gitlab.com>2018-12-14 14:49:53 +0300
committerFatih Acet <acetfatih@gmail.com>2018-12-14 14:49:53 +0300
commita2e9ad83f406f2a0ca9e7766a3f41de1f9aadd9a (patch)
treec276ce662d842ed8f403ed2121e8c841c28ae8fd /spec/support/features
parente8a7836cee837d71bb0155c01ebb79deaebbbfdb (diff)
Display reply field if resolved discussion has no replies
Diffstat (limited to 'spec/support/features')
-rw-r--r--spec/support/features/discussion_comments_shared_example.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/support/features/discussion_comments_shared_example.rb b/spec/support/features/discussion_comments_shared_example.rb
index 922f3df144d..42a086d58d2 100644
--- a/spec/support/features/discussion_comments_shared_example.rb
+++ b/spec/support/features/discussion_comments_shared_example.rb
@@ -178,6 +178,16 @@ shared_examples 'discussion comments' do |resource_name|
let(:note_id) { find("#{comments_selector} .note:first-child", match: :first)['data-note-id'] }
let(:reply_id) { find("#{comments_selector} .note:last-child", match: :first)['data-note-id'] }
+ it 'can be replied to after resolving' do
+ click_button "Resolve discussion"
+ wait_for_requests
+
+ refresh
+ wait_for_requests
+
+ submit_reply('to reply or not reply')
+ end
+
it 'shows resolved discussion when toggled' do
submit_reply('a')