From 47968c8126027c079e9a54c71a63b5dfaf3c0bda Mon Sep 17 00:00:00 2001 From: lucascono Date: Wed, 4 Oct 2017 08:55:40 -0300 Subject: [PATCH] Unit test for modal bug fix Unit test for pull request #24240 --- js/tests/unit/modal.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/js/tests/unit/modal.js b/js/tests/unit/modal.js index e026cd7f148c..d55a552ade45 100644 --- a/js/tests/unit/modal.js +++ b/js/tests/unit/modal.js @@ -673,4 +673,17 @@ $(function () { $toggleBtn.trigger('click') setTimeout(done, 500) }) + + QUnit.test('should not try to open a modal which is already visible', function (assert) { + assert.expect(1) + var done = assert.async() + var count = 0 + + $('