Description
In test/features/v1/mockedServicesOrchestrateTest/wikidataTests.js, we currently check that constructed URLs are correct using string equality (after getting them from captured logs). We can make this more robust as follows:
- Parse the params with URLSearchParams and check for the specific keys we want.
Otherwise, if the code trivially changes to add keys in a different order, we might end up in a situation where the tests will fail for no reason.
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Back-end_Task/Bug_completion_checklist