summaryrefslogtreecommitdiff
path: root/spec/features
diff options
context:
space:
mode:
authorFatih Acet <acetfatih@gmail.com>2016-12-28 20:15:21 +0000
committerFatih Acet <acetfatih@gmail.com>2016-12-28 20:15:21 +0000
commit19e3ab18af273d3d17deabe7e18cd78a3f903644 (patch)
treeab34a6ff3ad962dffdb7e84323fa3f5ff756cd77 /spec/features
parent99cccf512f0c8d44ca6045fdfb596c6f6f488767 (diff)
parentc5757e9afb29f094a37e3ac19f22db4b90fc7670 (diff)
downloadgitlab-ce-19e3ab18af273d3d17deabe7e18cd78a3f903644.tar.gz
Merge branch 'gfm-new-line-fix' into 'master'
Fix GFM dropdown not showing at beginning of new lines Closes #26145 See merge request !8338
Diffstat (limited to 'spec/features')
-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