diff --git a/js/tests/unit/dropdown.spec.js b/js/tests/unit/dropdown.spec.js
index ba1d0f4438f2..6bf2380c6063 100644
--- a/js/tests/unit/dropdown.spec.js
+++ b/js/tests/unit/dropdown.spec.js
@@ -54,6 +54,25 @@ describe('Dropdown', () => {
expect(dropdown.toggle).toHaveBeenCalled()
})
+ it('should allow click events to bubble', () => {
+ fixtureEl.innerHTML = [
+ '
',
+ ' ',
+ ' ',
+ '
'
+ ].join('')
+
+ const btnDropdown = fixtureEl.querySelector('[data-bs-toggle="dropdown"]')
+ const clickListener = jasmine.createSpy('clickListener')
+
+ btnDropdown.addEventListener('click', () => clickListener())
+ btnDropdown.click()
+
+ expect(clickListener).toHaveBeenCalled()
+ })
+
it('should allow to pass config to Popper with `popperConfig`', () => {
fixtureEl.innerHTML = [
'',