diff options
| author | Jan Bensch <[email protected]> | 2023-03-14 05:50:08 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-03-14 06:50:08 +0200 |
| commit | e00d06e45bf0b15c018c3313fb129d938f56cb2b (patch) | |
| tree | 420b7d56094fa0f7a4a4793c6370e0912108e805 /js/tests | |
| parent | e9355c6dff78007e8d61d3ca62b768369a397f07 (diff) | |
| download | bootstrap-e00d06e45bf0b15c018c3313fb129d938f56cb2b.tar.xz bootstrap-e00d06e45bf0b15c018c3313fb129d938f56cb2b.zip | |
Fix wrong generation of `aria-labelledby` in tab navigation (#38223)
* fix wrong generation of aria-labelledby in tab navigation
* fix wrong test
---------
Co-authored-by: Jan Bensch <[email protected]>
Co-authored-by: XhmikosR <[email protected]>
Diffstat (limited to 'js/tests')
| -rw-r--r-- | js/tests/unit/tab.spec.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/tests/unit/tab.spec.js b/js/tests/unit/tab.spec.js index 1ac5929e1..95b31b4f0 100644 --- a/js/tests/unit/tab.spec.js +++ b/js/tests/unit/tab.spec.js @@ -514,7 +514,7 @@ describe('Tab', () => { expect(tabPanel.hasAttribute('tabindex')).toBeFalse() expect(tabPanel.hasAttribute('tabindex2')).toBeFalse() - expect(tabPanel.getAttribute('aria-labelledby')).toEqual('#foo') + expect(tabPanel.getAttribute('aria-labelledby')).toEqual('foo') expect(tabPanel2.hasAttribute('aria-labelledby')).toBeFalse() }) }) |
