summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorJacob Schatz <jschatz@gitlab.com>2016-12-22 21:25:11 +0000
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-12-23 10:54:12 -0200
commit1cf2619596e13d112098707daa66a6830d2f9820 (patch)
tree7fe4067d99d5e054a10a0b881ed05c8577436030 /spec
parente94a78d024fc621c3364bf7f069690819ea34c7f (diff)
downloadgitlab-ce-1cf2619596e13d112098707daa66a6830d2f9820.tar.gz
Merge branch 'markdown-input-symbol-regex' into 'master'
Stops GFM special characters interfering with markdown tags See merge request !8265
Diffstat (limited to 'spec')
-rw-r--r--spec/features/issues/gfm_autocomplete_spec.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/features/issues/gfm_autocomplete_spec.rb b/spec/features/issues/gfm_autocomplete_spec.rb
index df3a467cbb7..d0294908d2c 100644
--- a/spec/features/issues/gfm_autocomplete_spec.rb
+++ b/spec/features/issues/gfm_autocomplete_spec.rb
@@ -47,6 +47,24 @@ feature 'GFM autocomplete', feature: true, js: true do
expect_to_wrap(true, label_item, note, label.title)
end
+ it "does not show drpdown when preceded with a special character" do
+ note = find('#note_note')
+ page.within '.timeline-content-form' do
+ note.native.send_keys('')
+ note.native.send_keys("@")
+ note.click
+ end
+
+ expect(page).to have_selector('.atwho-container')
+
+ page.within '.timeline-content-form' do
+ note.native.send_keys("@")
+ note.click
+ end
+
+ expect(page).to have_selector('.atwho-container', visible: false)
+ end
+
it 'doesn\'t wrap for assignee values' do
note = find('#note_note')
page.within '.timeline-content-form' do