diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-08-04 23:57:03 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-08-04 23:57:03 +0300 |
commit | 7065bb3ef31fe04bea39aa07d620552eaaa26aba (patch) | |
tree | c049fec945e88341e9d119e0c9e4b1a3b3307a08 /spec/javascripts/behaviors | |
parent | c28df4bce9bb1ca6f6cfb5861ab28fc2b08689e3 (diff) |
Fix vue broken test
Diffstat (limited to 'spec/javascripts/behaviors')
-rw-r--r-- | spec/javascripts/behaviors/quick_submit_spec.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/javascripts/behaviors/quick_submit_spec.js b/spec/javascripts/behaviors/quick_submit_spec.js index 0d3f3e9673a..6dc48f9a293 100644 --- a/spec/javascripts/behaviors/quick_submit_spec.js +++ b/spec/javascripts/behaviors/quick_submit_spec.js @@ -38,19 +38,19 @@ import '~/behaviors/quick_submit'; return expect(this.spies.submit).not.toHaveBeenTriggered(); }); it('disables input of type submit', function() { - const submitButton = $('.js-vue-quick-submit input[type=submit]'); + const submitButton = $('.js-quick-submit input[type=submit]'); this.textarea.trigger(keydownEvent()); expect(submitButton).toBeDisabled(); }); it('disables button of type submit', function() { - const submitButton = $('.js-vue-quick-submit input[type=submit]'); + const submitButton = $('.js-quick-submit input[type=submit]'); this.textarea.trigger(keydownEvent()); expect(submitButton).toBeDisabled(); }); it('only clicks one submit', function() { - const existingSubmit = $('.js-vue-quick-submit input[type=submit]'); + const existingSubmit = $('.js-quick-submit input[type=submit]'); // Add an extra submit button const newSubmit = $('<button type="submit">Submit it</button>'); newSubmit.insertAfter(this.textarea); |