summaryrefslogtreecommitdiff
path: root/spec/javascripts/behaviors/quick_submit_spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/javascripts/behaviors/quick_submit_spec.js')
-rw-r--r--spec/javascripts/behaviors/quick_submit_spec.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/javascripts/behaviors/quick_submit_spec.js b/spec/javascripts/behaviors/quick_submit_spec.js
index f62bf43adb9..d5300d9c63d 100644
--- a/spec/javascripts/behaviors/quick_submit_spec.js
+++ b/spec/javascripts/behaviors/quick_submit_spec.js
@@ -19,6 +19,11 @@ describe('Quick Submit behavior', () => {
this.textarea = $('.js-quick-submit textarea').first();
});
+ afterEach(() => {
+ // Undo what we did to the shared <body>
+ $('body').removeAttr('data-page');
+ });
+
it('does not respond to other keyCodes', () => {
this.textarea.trigger(keydownEvent({
keyCode: 32,