diff options
author | Fatih Acet <acetfatih@gmail.com> | 2017-07-20 23:43:54 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2017-07-21 22:35:26 +0300 |
commit | cbdbd24617b906f5aeb8c2441f686440b1f35056 (patch) | |
tree | e787d351234297ac9325ff8e93f440f269306b7b /spec/features/participants_autocomplete_spec.rb | |
parent | d493c16fb1f88d6c89228c1008dade426ede35fb (diff) | |
download | gitlab-ce-cbdbd24617b906f5aeb8c2441f686440b1f35056.tar.gz |
IssueNotesRefactor: Fixes autocomplete specs.
Diffstat (limited to 'spec/features/participants_autocomplete_spec.rb')
-rw-r--r-- | spec/features/participants_autocomplete_spec.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/features/participants_autocomplete_spec.rb b/spec/features/participants_autocomplete_spec.rb index 81b0a2f541b..180447c2a0e 100644 --- a/spec/features/participants_autocomplete_spec.rb +++ b/spec/features/participants_autocomplete_spec.rb @@ -14,7 +14,11 @@ feature 'Member autocomplete', :js do shared_examples "open suggestions when typing @" do before do page.within('.new-note') do - find('#note_note').send_keys('@') + if note.noteable_type === 'Issue' + find('#note-body').send_keys('@') + else + find('#note_note').send_keys('@') + end end end |