Add the following config
$wgVectorDefaultSkinVersion = '1'; $wgVectorSkinMigrationMode = false;
Incognito visit http://localhost:8888/w/index.php/Selenium_category_test?useskin=vector-2022
See: notice, incorrectly styled search and uncollapsed user dropdown.
Developer notes
This happens because Hooks::isSkinVersionLegacy() returns true in this situation.
SkinVersionLookup::getVersion returns 1
This also causes a production error https://logstash.wikimedia.org/goto/d7565ceb716e44e47aab1a7b7df6febb