diff options
author | Phil Hughes <me@iamphill.com> | 2016-12-22 18:39:00 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-12-22 18:39:00 +0000 |
commit | 940d8a06422b94ee7a5ff36d91a820fff3d9947b (patch) | |
tree | e3145fa8e3cd495d955c6bdee512b8bd11fe6d44 | |
parent | 7241246a04773805397c0eefd44a6fba20f04a1a (diff) | |
download | gitlab-ce-markdown-input-symbol-regex.tar.gz |
Added tests for special charactersmarkdown-input-symbol-regex
-rw-r--r-- | spec/features/issues/gfm_autocomplete_spec.rb | 18 |
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 |