Last modified: 2014-10-19 17:44:20 UTC
We already have tests for a few tabs at preferences page[1-3]. Create test for another tab, for example recent changes[4]. The test should navigate to the page, check that the URL is correct and that at least one expected element appears. 1: http://en.wikipedia.beta.wmflabs.org/wiki/Special:Preferences 2: https://github.com/wikimedia/mediawiki-core/blob/master/tests/browser/features/preferences.feature 3: https://gerrit.wikimedia.org/r/#/c/117088/ 4: http://en.wikipedia.beta.wmflabs.org/wiki/Special:Preferences#mw-prefsection-rc
Related to bug 58900.
(In reply to Željko Filipin from comment #1) > Related to bug 58900. Now it is.
(In reply to jeremyb from comment #2) > (In reply to Željko Filipin from comment #1) > > Related to bug 58900. > > Now it is. Thanks, I knew there was a way to do it, but I could not find it, it was pretty late.
As of July 2014, tests exist for Appearance, Editing, and User Profile. Tests to be created are Recent Changes, Watchlist, Search. Any other Preferences tabs are specific to their own wiki and do not belong in mediawiki/core. See https://github.com/wikimedia/mediawiki-core/blob/master/tests/browser/features/preferences.feature for the current state of Preferences tests.