From 14323ffb04b6c6df2efe70eab3d0caf3a932acba Mon Sep 17 00:00:00 2001 From: Giovanni Mendoza Date: Sat, 15 Feb 2020 19:35:46 -0600 Subject: [PATCH] Tests added to close modal * According to #29986 --- js/tests/unit/modal.js | 49 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/js/tests/unit/modal.js b/js/tests/unit/modal.js index b1ddc8512ff5..14cebe84f374 100644 --- a/js/tests/unit/modal.js +++ b/js/tests/unit/modal.js @@ -855,4 +855,53 @@ $(function () { backdrop: 'static' }) }) + + QUnit.test('should close modal when escape key is pressed with keyboard = true and backdrop is static', function (assert) { + assert.expect(1) + var done = assert.async() + var $modal = $('