mediawiki-skins-Vector/tests/jest
Lucas Werkmeister d34fae74f1 search: Add wprov to result URLs
This ensures that the wprov parameter is included when users follow the
link as a link (click, middle-click, etc.), and also prepares us for a
future where pressing Enter after selecting a search result navigates to
that result’s URL instead of submitting the form. It also matches the
behavior of the legacy search form.

We put this in App.vue + instrumentation.js, not in urlGenerator.js,
because we also want wprov to be added when custom URL generators or
search clients are used. (The reason for instrumentation.js instead of
purely App.vue is just that it’s easier to test there.)

In the tests, we need to update @wikimedia/mw-node-qunit so that we have
a sufficiently functional mw.Uri() mock.

Bug: T317682
Change-Id: I765d3bbf89b2253add7b50305c362e4bbc9ecceb
2022-10-21 11:58:30 +02:00
..
__mocks__ Add tests for dropdownMenu.js 2022-09-01 13:11:22 -07:00
__snapshots__ Fixes to addPortletLink hook handler 2022-09-30 20:37:01 +00:00
skins.vector.es6 Add collapsed TOC to sticky header by moving the TOC 2022-08-11 11:25:21 +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 Add tests for dropdownMenu.js 2022-09-01 13:11:22 -07:00
fetch.test.js Add fetch tests from WVUI 2022-02-15 14:00:40 -06:00
instrumentation.test.js search: Add wprov to result URLs 2022-10-21 11:58:30 +02:00
restSearchClient.test.js Remove $wgVectorSearchHost, replace with $wgVectorSearchApiUrl 2022-10-07 00:57:58 +00:00
stickyHeader.test.js Create new sticky toc container 2022-08-31 21:27:06 +00:00
tableOfContents.test.js Style active top level section differently than ordinary active TOC sections 2022-09-20 16:57:53 -05:00
userLinks.test.js Add snapshot class to sticky header tests 2022-05-12 10:51:43 -05:00
userLinksData.js Remove custom rendering of the user links overflow menu in favor of using 'vector-user-menu-overflow', a vector specific menu bucket in Hooks.php 2022-08-01 20:18:46 +00:00