mediawiki-skins-Vector/tests/jest
Jan Drewniak e4af2b5df3 Prevent addPortletLinkHandler from looping over links twice
- Prevents the addPortletLinkHandler function from looping
over the same links multiple times by indexing
the HTMLElement instead of just the ID, which is an
optional parameter.
- Conditionally adds the icon class if the ID parameter
exists.
- Refactors the function to calculate the width of the
vector toolbar.
- Adds Jest tests to account for the dual icon scenario
and updates existing Jest tests.

Bug: T327369
Change-Id: I2a0934405efebd0e95919bc523d711866236a7e6
2023-02-16 20:05:54 +00:00
..
__mocks__ Limited width toggle 2022-11-01 16:29:43 +00:00
__snapshots__ Update user links dropdown id 2023-02-16 11:21:56 -06:00
skins.vector.es6 Additional FIXME cleanup relating to moving feature classes from body 2023-02-08 10:49:13 -06:00
skins.vector.js Prevent addPortletLinkHandler from looping over links twice 2023-02-16 20:05:54 +00:00
AB.test.js Add tests for dropdownMenu.js 2022-09-01 13:11:22 -07:00
App.test.js Search: Use Codex and Vue 3 instead of WVUI and Vue 2. 2022-07-18 12:54:47 -07:00
deferUntilFrame.test.js Fix TOC section activation on link click bug 2022-02-08 14:45:16 -07:00
fetch.test.js Add fetch tests from WVUI 2022-02-15 14:00:40 -06:00
instrumentation.test.js search: Remove unused generateUrl() function 2022-12-06 13:35:45 +01:00
pinnableElement.test.js Add setFocusToToggleButton function to pinnableElement.js 2023-02-01 14:31:53 -06:00
restSearchClient.test.js search: Don’t pass searchApiUrl into fetchByTitle() 2022-11-25 15:00:16 +01:00
stickyHeader.test.js Update user links dropdown id 2023-02-16 11:21:56 -06:00
tableOfContents.test.js Update tableOfContents.js to rerender only the TOC contents rather than the entire pinnable element 2023-01-16 12:39:05 +01:00
urlGenerator.test.js search: Remove unused generateUrl() function 2022-12-06 13:35:45 +01:00
userLinks.test.js Add snapshot class to sticky header tests 2022-05-12 10:51:43 -05:00
userLinksData.js Update user links dropdown id 2023-02-16 11:21:56 -06:00