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 @@