diff options
author | Phil Hughes <me@iamphill.com> | 2016-12-22 21:39:00 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-12-22 21:39:00 +0300 |
commit | 940d8a06422b94ee7a5ff36d91a820fff3d9947b (patch) | |
tree | e3145fa8e3cd495d955c6bdee512b8bd11fe6d44 /spec/features/issues/gfm_autocomplete_spec.rb | |
parent | 7241246a04773805397c0eefd44a6fba20f04a1a (diff) |
Added tests for special characters
Diffstat (limited to 'spec/features/issues/gfm_autocomplete_spec.rb')
-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 |