mediawiki-skins-Vector/tests/jest
bwang 9e4bdd00bf Remove custom handling of user links menu items and handle case when anon editor links are disabled
Rather than try to build individually build login, logout, and create account menu items, we handle them the same as all other user links menu items in Hooks.php. While Hooks isnt ideal, there currently isnt a good path for moving that code to SkinComponents until core provides menu data. In the meantime, this patch reduces code complexity and prevents bugs like T324638.
This approach also allows us to move user links logic from SkinVector22 to VectorComponentUserLinks.php, and ensures the user links dropdown contains multiple menus, which allows us to reuse styles from page tools dropdowns.

Expected 11 visual changes:
* minor visual change where the user links dropdown has an
additional 4px vertical padding.
This padding was originally added to the page tools dropdowns
per Alex's request, but Alex also said that dropdowns should share
the same spacing. This change makes the styles all consistent
* Order of talk and contribution links have been swapped

Bug: T289212
Bug: T319356
Bug: T328954
Change-Id: Iac0586893fec26a8a6c2c904ce08fbf1e19b339c
2023-02-09 13:37:17 -06:00
..
__mocks__ Limited width toggle 2022-11-01 16:29:43 +00:00
__snapshots__ Remove custom handling of user links menu items and handle case when anon editor links are disabled 2023-02-09 13:37:17 -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 Remove vector-menu-dropdown-noicon class 2023-01-10 23:48:05 +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
dropdownMenu.test.js Remove vector-menu-dropdown-noicon class 2023-01-10 23:48:05 +00: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 Components: Model table of contents in title bar. 2023-01-11 15:42:23 -08: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 Remove custom handling of user links menu items and handle case when anon editor links are disabled 2023-02-09 13:37:17 -06:00