diff options
author | Fatih Acet <acetfatih@gmail.com> | 2016-12-28 20:15:21 +0000 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2016-12-28 20:15:21 +0000 |
commit | 19e3ab18af273d3d17deabe7e18cd78a3f903644 (patch) | |
tree | ab34a6ff3ad962dffdb7e84323fa3f5ff756cd77 /spec/features | |
parent | 99cccf512f0c8d44ca6045fdfb596c6f6f488767 (diff) | |
parent | c5757e9afb29f094a37e3ac19f22db4b90fc7670 (diff) | |
download | gitlab-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.rb | 12 |
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 |