diff --git a/js/tests/unit/dropdown.js b/js/tests/unit/dropdown.js
index 652ec480e9..346b1a2e5a 100644
--- a/js/tests/unit/dropdown.js
+++ b/js/tests/unit/dropdown.js
@@ -776,6 +776,45 @@ $(function () {
$triggerDropdown.trigger($.Event('click'))
})
+ QUnit.test('should close dropdown and set focus back to toggle when escape is pressed while focused on a dropdown item', function (assert) {
+ assert.expect(3)
+ var done = assert.async()
+
+ var dropdownHTML = '