summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-12-28 10:19:24 +0000
committerPhil Hughes <me@iamphill.com>2016-12-28 10:19:24 +0000
commitc5757e9afb29f094a37e3ac19f22db4b90fc7670 (patch)
treeb7c2b5c26033d75669879fbfc2eff1cf0bdaa3a3 /spec
parentb93c72e33a50aaed845fe333dee0201b0b11934e (diff)
downloadgitlab-ce-c5757e9afb29f094a37e3ac19f22db4b90fc7670.tar.gz
Fix GFM dropdown not showing at beginning of new linesgfm-new-line-fix
Closes #26145
Diffstat (limited to 'spec')
-rw-r--r--spec/features/issues/gfm_autocomplete_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/features/issues/gfm_autocomplete_spec.rb b/spec/features/issues/gfm_autocomplete_spec.rb
index 3489331a1b6..82c9bd0e6e6 100644
--- a/spec/features/issues/gfm_autocomplete_spec.rb
+++ b/spec/features/issues/gfm_autocomplete_spec.rb
@@ -47,6 +47,18 @@ feature 'GFM autocomplete', feature: true, js: true do
expect_to_wrap(true, label_item, note, label.title)
end
+ it "shows dropdown after a new line" do
+ note = find('#note_note')
+ page.within '.timeline-content-form' do
+ note.native.send_keys('test')
+ note.native.send_keys(:enter)
+ note.native.send_keys(:enter)
+ note.native.send_keys('@')
+ end
+
+ expect(page).to have_selector('.atwho-container')
+ end
+
it "does not show dropdown when preceded with a special character" do
note = find('#note_note')
page.within '.timeline-content-form' do