diff options
author | Fatih Acet <acetfatih@gmail.com> | 2017-10-30 16:58:34 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2017-10-30 16:58:34 +0300 |
commit | 391195f32b5aee5f5d4d4a10e8907696e2ecf617 (patch) | |
tree | bd7968308bb6d9cd7a5f1c20bfbc40739a7f48a2 /spec | |
parent | 9a58468bee9a28d5762fb9f75e4d457552f943c8 (diff) | |
parent | e6b0f4420059285e1ad6e98d98321381ebd9d671 (diff) |
Merge branch '39020-fix-js-call-stack-size-exceeded-autocomplete-group-milestone' into 'master'
Fix call stack size exceeded group milestone description autocomplete
Closes #39020
See merge request gitlab-org/gitlab-ce!14972
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/groups/milestone_spec.rb | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/spec/features/groups/milestone_spec.rb b/spec/features/groups/milestone_spec.rb index 12aa54a3da1..1b41b3842c8 100644 --- a/spec/features/groups/milestone_spec.rb +++ b/spec/features/groups/milestone_spec.rb @@ -19,9 +19,9 @@ feature 'Group milestones', :js do end it 'renders description preview' do - form = find('.gfm-form') + description = find('.note-textarea') - form.fill_in(:milestone_description, with: '') + description.native.send_keys('') click_link('Preview') @@ -31,7 +31,7 @@ feature 'Group milestones', :js do click_link('Write') - form.fill_in(:milestone_description, with: ':+1: Nice') + description.native.send_keys(':+1: Nice') click_link('Preview') @@ -51,6 +51,13 @@ feature 'Group milestones', :js do expect(find('.start_date')).to have_content(Date.today.at_beginning_of_month.strftime('%b %-d, %Y')) end + + it 'description input does not support autocomplete' do + description = find('.note-textarea') + description.native.send_keys('!') + + expect(page).not_to have_selector('.atwho-view') + end end context 'milestones list' do |