summaryrefslogtreecommitdiff
path: root/spec/features
diff options
context:
space:
mode:
authorSam Rose <samrose3@gmail.com>2017-02-09 22:35:32 -0500
committerSam Rose <samrose3@gmail.com>2017-02-13 13:13:57 -0500
commit1536109ccd297924474da3e46019b191013c55d4 (patch)
tree4055d824405e6c8bd2ac6005391dd54d72891ba4 /spec/features
parent5e95296278a629df317d769ae70a3bb9513a64cd (diff)
downloadgitlab-ce-1536109ccd297924474da3e46019b191013c55d4.tar.gz
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/issues/gfm_autocomplete_spec.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/features/issues/gfm_autocomplete_spec.rb b/spec/features/issues/gfm_autocomplete_spec.rb
index 93139dc9e94..7135565294b 100644
--- a/spec/features/issues/gfm_autocomplete_spec.rb
+++ b/spec/features/issues/gfm_autocomplete_spec.rb
@@ -182,6 +182,20 @@ feature 'GFM autocomplete', feature: true, js: true do
expect(page).not_to have_selector('.atwho-view')
end
+ it 'triggers autocomplete after selecting a slash command' do
+ note = find('#note_note')
+ page.within '.timeline-content-form' do
+ note.native.send_keys('')
+ note.native.send_keys('/as')
+ note.click
+ end
+
+ find('.atwho-view li', text: '/assign').native.send_keys(:tab)
+
+ user_item = find('.atwho-view li', text: user.username)
+ expect(user_item).to have_content(user.username)
+ end
+
def expect_to_wrap(should_wrap, item, note, value)
expect(item).to have_content(value)
expect(item).not_to have_content("\"#{value}\"")