From: XhmikosR Date: Sat, 14 Nov 2020 06:16:30 +0000 (+0200) Subject: Fix `.close` instances (#32152) X-Git-Tag: v5.0.0-beta1~120 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f8b243ac1a7ccd13c6bb485463ae365010d2620;p=thirdparty%2Fbootstrap.git Fix `.close` instances (#32152) --- diff --git a/js/tests/unit/tab.spec.js b/js/tests/unit/tab.spec.js index f74d389df2..324c4a09ba 100644 --- a/js/tests/unit/tab.spec.js +++ b/js/tests/unit/tab.spec.js @@ -283,17 +283,17 @@ describe('Tab', () => { '', diff --git a/js/tests/unit/toast.spec.js b/js/tests/unit/toast.spec.js index b743549625..c4cb69a7f1 100644 --- a/js/tests/unit/toast.spec.js +++ b/js/tests/unit/toast.spec.js @@ -46,9 +46,7 @@ describe('Toast', () => { it('should close toast when close element with data-bs-dismiss attribute is set', done => { fixtureEl.innerHTML = [ '
', - ' ', + ' ', '
' ].join('') @@ -58,7 +56,7 @@ describe('Toast', () => { toastEl.addEventListener('shown.bs.toast', () => { expect(toastEl.classList.contains('show')).toEqual(true) - const button = toastEl.querySelector('.close') + const button = toastEl.querySelector('.btn-close') button.click() }) @@ -80,9 +78,7 @@ describe('Toast', () => { fixtureEl.innerHTML = [ '
', - ' ', + ' ', '
' ].join('') diff --git a/js/tests/visual/alert.html b/js/tests/visual/alert.html index f51fe80447..07f9b972df 100644 --- a/js/tests/visual/alert.html +++ b/js/tests/visual/alert.html @@ -11,16 +11,12 @@

Alert Bootstrap Visual Test

diff --git a/js/tests/visual/modal.html b/js/tests/visual/modal.html index 79d815d3ca..b39c4fd722 100644 --- a/js/tests/visual/modal.html +++ b/js/tests/visual/modal.html @@ -39,9 +39,7 @@