diff options
author | Phil Hughes <me@iamphill.com> | 2018-03-22 10:17:02 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-03-22 10:17:02 +0000 |
commit | 58fe13ec9c8b5eab067012ce9e642b4690863474 (patch) | |
tree | ab9754d8e629543c30166e07ae23d56c6caa46c1 /spec/javascripts/notes_spec.js | |
parent | b6a9a8baf5d05121b2665e62a7169bb55459ae69 (diff) | |
parent | 4718f22f5751f8d50bd7897ff4a967ccc5625c80 (diff) | |
download | gitlab-ce-44453-performance-bar-modalbox.tar.gz |
Merge branch 'master' into '44453-performance-bar-modalbox'44453-performance-bar-modalbox
# Conflicts:
# app/assets/javascripts/performance_bar/components/detailed_metric.vue
Diffstat (limited to 'spec/javascripts/notes_spec.js')
-rw-r--r-- | spec/javascripts/notes_spec.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/javascripts/notes_spec.js b/spec/javascripts/notes_spec.js index 8f317b06792..1858d6b6474 100644 --- a/spec/javascripts/notes_spec.js +++ b/spec/javascripts/notes_spec.js @@ -549,6 +549,20 @@ import timeoutPromise from './helpers/set_timeout_promise_helper'; }); }); + it('should disable the submit button when comment button is clicked', (done) => { + expect($form.find('.js-comment-submit-button').is(':disabled')).toEqual(false); + + mockNotesPost(); + $('.js-comment-button').click(); + expect($form.find('.js-comment-submit-button').is(':disabled')).toEqual(true); + + setTimeout(() => { + expect($form.find('.js-comment-submit-button').is(':disabled')).toEqual(false); + + done(); + }); + }); + it('should show actual note element when new comment is done posting', (done) => { mockNotesPost(); |