summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2017-12-06 19:53:05 +0000
committerAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2017-12-06 19:53:05 +0000
commit743451b231445bfc2ee295d8097bdcdeb1ff47ad (patch)
tree092a7a8c0171bb77b72ef9bcaba46d5585262e7d /spec
parent6808d11b058939e61deea8c164f5b01aa19c9176 (diff)
parent67f20699d5c860f4cbdaeada86032c24a91bd9b2 (diff)
downloadgitlab-ce-743451b231445bfc2ee295d8097bdcdeb1ff47ad.tar.gz
Merge branch '35773-search-box-close-dropdown' into 'master'
Close all open dropdowns when search input is clicked Closes #35773 See merge request gitlab-org/gitlab-ce!15737
Diffstat (limited to 'spec')
-rw-r--r--spec/javascripts/search_autocomplete_spec.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/spec/javascripts/search_autocomplete_spec.js b/spec/javascripts/search_autocomplete_spec.js
index a2394857b82..fdfc59a6f12 100644
--- a/spec/javascripts/search_autocomplete_spec.js
+++ b/spec/javascripts/search_autocomplete_spec.js
@@ -191,8 +191,6 @@ import '~/lib/utils/common_utils';
// browsers will not trigger default behavior (form submit, in this
// example) on JavaScript-created keypresses.
expect(submitSpy).not.toHaveBeenTriggered();
- // Does a worse job at capturing the intent of the test, but works.
- expect(enterKeyEvent.isDefaultPrevented()).toBe(true);
});
});
}).call(window);