diff options
author | Sam Rose <samrose3@gmail.com> | 2017-02-09 22:35:32 -0500 |
---|---|---|
committer | Sam Rose <samrose3@gmail.com> | 2017-02-13 13:13:57 -0500 |
commit | 1536109ccd297924474da3e46019b191013c55d4 (patch) | |
tree | 4055d824405e6c8bd2ac6005391dd54d72891ba4 /spec/features/issues/gfm_autocomplete_spec.rb | |
parent | 5e95296278a629df317d769ae70a3bb9513a64cd (diff) | |
download | gitlab-ce-1536109ccd297924474da3e46019b191013c55d4.tar.gz |
Retrigger at.js for slash commands with autocomplete suffix27883-autocomplete-seems-to-not-trigger-when-at-character-is-part-of-an-autocompleted-text
Diffstat (limited to 'spec/features/issues/gfm_autocomplete_spec.rb')
-rw-r--r-- | spec/features/issues/gfm_autocomplete_spec.rb | 14 |
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}\"") |