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:
authorPeter Leitzen <pl@neopoly.de>2018-08-10 18:51:34 +0300
committerPeter Leitzen <pl@neopoly.de>2018-08-10 18:51:34 +0300
commitea9c7bee4b167e85e192cc40720d2c4cc07540ab (patch)
tree0707a83b1408eaa69acfc03bb1248319d0a4051b /spec/features/commits
parent82337dd684d88ec38285d51cfb1180b1a1057b95 (diff)
Fix preview of commit tagging
Diffstat (limited to 'spec/features/commits')
-rw-r--r--spec/features/commits/user_uses_slash_commands_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/features/commits/user_uses_slash_commands_spec.rb b/spec/features/commits/user_uses_slash_commands_spec.rb
index f356155be61..d8359766509 100644
--- a/spec/features/commits/user_uses_slash_commands_spec.rb
+++ b/spec/features/commits/user_uses_slash_commands_spec.rb
@@ -32,5 +32,15 @@ describe 'Commit > User uses quick actions', :js do
expect(page).to have_content tag_message
expect(page).to have_content truncated_commit_sha
end
+
+ describe 'preview', :js do
+ it 'removes quick action from note and explains it' do
+ preview_note("/tag #{tag_name} #{tag_message}")
+
+ expect(page).not_to have_content '/tag'
+ expect(page).to have_content %{Tags this commit to #{tag_name} with "#{tag_message}"}
+ expect(page).to have_content tag_name
+ end
+ end
end
end