summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-12-12 14:32:03 +0000
committerPhil Hughes <me@iamphill.com>2016-12-12 14:32:03 +0000
commit48f24735a8190f72e9bfdeeccf982a38233efcd7 (patch)
tree22efcb7b3659ef0d3d16c95623de74856ccc5610
parente1f563109c19a08405170d281a7ac537b7c881ff (diff)
downloadgitlab-ce-48f24735a8190f72e9bfdeeccf982a38233efcd7.tar.gz
Added GFM tests
-rw-r--r--spec/features/issues/gfm_autocomplete_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/features/issues/gfm_autocomplete_spec.rb b/spec/features/issues/gfm_autocomplete_spec.rb
index c421da97d76..6034ca48db2 100644
--- a/spec/features/issues/gfm_autocomplete_spec.rb
+++ b/spec/features/issues/gfm_autocomplete_spec.rb
@@ -40,4 +40,12 @@ feature 'GFM autocomplete', feature: true, js: true do
expect(page).not_to have_selector('.atwho-view')
end
+
+ it 'doesnt open autocomplete after non-word character' do
+ page.within '.timeline-content-form' do
+ find('#note_note').native.send_keys("@#{user.username[0..2]}!")
+ end
+
+ expect(page).not_to have_selector('.atwho-view')
+ end
end