From 8bc6dcd280f096189214561b1f87f015cd2dcba1 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Thu, 4 Jun 2020 10:41:47 +0300 Subject: Backport #30936 Add role="dialog" in modals via JavaScript --- js/tests/unit/modal.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'js/tests/unit') diff --git a/js/tests/unit/modal.js b/js/tests/unit/modal.js index fefd84fce..5434987d8 100644 --- a/js/tests/unit/modal.js +++ b/js/tests/unit/modal.js @@ -297,6 +297,23 @@ $(function () { .bootstrapModal('show') }) + QUnit.test('should add role="dialog" attribute when shown, remove it again when hidden', function (assert) { + assert.expect(3) + var done = assert.async() + + $('