diff options
author | Peter Leitzen <pl@neopoly.de> | 2018-08-10 18:51:34 +0300 |
---|---|---|
committer | Peter Leitzen <pl@neopoly.de> | 2018-08-10 18:51:34 +0300 |
commit | ea9c7bee4b167e85e192cc40720d2c4cc07540ab (patch) | |
tree | 0707a83b1408eaa69acfc03bb1248319d0a4051b /spec/features/commits | |
parent | 82337dd684d88ec38285d51cfb1180b1a1057b95 (diff) |
Fix preview of commit tagging
Diffstat (limited to 'spec/features/commits')
-rw-r--r-- | spec/features/commits/user_uses_slash_commands_spec.rb | 10 |
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 |