EyeWiki:Extension tests
The following are tests of the extensions running on the wiki. Where applicable, if the "Test" value matches the "Expected" value, the extension can be assumed to be working.
Arrays
- Test
- orange, red, yellow, yellow
- Expected
- orange, red, yellow, yellow
Bootstrap
- This test should be done while using the Chameleon skin; view page with useskin=chameleon
This should be a greeny shadowed alert box with white text:
I am bootstrapped
CategoryTree
A category tree should be shown:
CategoryWatch
The "Watchlist" tab on Special:Preferences should have "Add all pages in a category to your watchlist when you add a category" as an option ("Advanced options" section).
CirrusSearch
To test that the extension is loaded, the following link (using the cirrusDumpQuery
parameter) should show a JSON object with details of the search:
To test that the indexer is working, add some custom string to this section that does not currently show up in Special:Search and then confirm that it shows up - this may take a few reloads. We want a string not currently in use so that we can check that new edits get indexed. If it works, revert the addition.
Cite
- Test
- Text[1]
- ↑ Test
- Expected
- Text[1]
- Jump up ↑ Test
CiteDrawer
Clicking on the actual reference [1]
in the Cite test above should bring up a floating drawer at the bottom of the screen with the reference.
Note: this may only work on desktop (or mobile) depending on the results of mw.config.get( 'wgCiteDrawerEnableDesktop' )
and mw.config.get( 'wgCiteDrawerEnableMobile' )
.
CodeMirror
- When navigating to editing the main page the codemirror interface should be loaded. Make sure that the option is enabled by running
mw.loader.using( [ 'mediawiki.api' ], () => new mw.Api().saveOption( 'usecodemirror', 1 ) );
and then reloading the page.
ConfirmEdit
skipcaptcha
right should be present here.
CookieWarning
The ext.CookieWarning
ResourceLoader module should be registered; in the developer console running mw.loader.getState('ext.CookieWarning');
should return a string (rather than null
).
Data Transfer
This should be a valid link: Special:ImportCSV
Description2
This should produce "Description2 works!" in the description meta tag of this page head.
DismissableSiteNotice
The ext.dismissableSiteNotice
ResourceLoader module should be registered; in the developer console running mw.loader.getState('ext.dismissableSiteNotice');
should return a string (rather than null
).
EditAccount
This should be a valid link: Special:EditAccount
Elastica
Usually, it is a dependency of CirrusSearch. If CirrusSearch test is passed, Elastica works. The extension must be listed on Special:Version.
External Data
- Test
- Europe
- Expected
- Europe
EyeWiki
The ext.eyeWiki
ResourceLoader module should be registered; in the developer console running mw.loader.getState('ext.eyeWiki');
should return a string (rather than null
).
GoogleAnalyticsMetrics
An integer should be displayed: Error!
HitCounters
An integer should follow: 178,599,340
MassMessage
Special:ListGrants should list massmessage
permission.
MassMessageEmail
No test was invented. The extension must be listed on Special:Version.
MetaMaster
The page source should contain:
<meta name="date" content="2002-04-04" />
MyVariables
- Test
- 35.171.164.77
- Expected
- Your user name or the IP for anonymous users
NewUserMessage
The username specified at MediaWiki:Newusermessage-editor (currently "New user message") must not be usable. This can be tested using the validatepassword
API endpoint using Special:ApiSandbox.
- go to Special:ApiSandbox
- choose
action
to bevalidatepassword
- set the
user
to beNew user message
- set the
password
to be some non-empty string - make the request
- verify that the failure error code is
baduser_user
and notuserexists
or something else
PageForms
This should be a valid link: Special:Forms
ParserFunctions
- Test math functions
- 10
- Expected
- 10
- Test string functions
- 8
- Expected
- 8
Parsoid
No test was invented. The extension must be listed on Special:Version.
QuestyCaptcha
No test was invented. The extension must be listed on Special:Version.
Renameuser
This should be a valid link: Special:RenameUser
Replace Text
This should be a valid link: Special:ReplaceText
RetainedArticles
When going to delete this page there should be an option for a "retained article".
RightFunctions
- Test
- createaccount
- read
- createpage
- createtalk
- writeapi
- viewmywatchlist
- editmywatchlist
- viewmyprivateinfo
- editmyprivateinfo
- editmyoptions
- viewedittab
- Expected
- a list of user rights that the current viewer has
Scribunto
Module:String
- Test
- 15
- Expected
- 15
<syntaxhighlight lang="html"> local p = {} function p.len(frame) local s = frame.args[1] return mw.ustring.len( s ) end return p </syntaxhighlight>
Semantic Drilldown
This should be a valid link: Special:BrowseData
SemanticDependencyUpdater
No test was invented. The extension must be listed on Special:Version.
SemanticExtraSpecialProperties
At least one of queries should return a value
- -
- -
- -
- -
- -
- WikiWorks, WikiWorks753
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
SemanticMediaWiki
SemanticResultFormats
- Test (old wikis)
- Expected
- A nice-looking DataTable with a search field
SemanticScribunto
Should be an icon with information popup -> some text
This is sample outputThis is a warning
-- Module:SMW local p = {} -- set with direct return results function p.info( frame ) if not mw.smw then return "mw.smw module not found" end if frame.args[1] == nil then return "no parameter found" end local tooltip if frame.args[2] then tooltip = mw.smw.info( frame.args[1], frame.args[2] ) else tooltip = mw.smw.info( frame.args[1] ) end return tooltip end -- another example, info used inside another function function p.inlineInfo( frame ) local output = 'This is sample output' -- so some stuff output = output .. mw.smw.info( 'This is a warning', 'warning' ) -- some more stuff return output end return p
SemanticTasks
No test was invented. The extension must be listed on Special:Version.
Sentry
No test was invented. The extension must be listed on Special:Version.
ShowMe
This should produce a dropdown:
Some text shown when clicking the first option.
UserExport
This should be a valid link: Special:UserExport
UserMerge
This should be a valid link: Special:UserMerge
Variables
- Test
- testing
- Expected
- testing
VisualEditor
This should load VisualEditor in edit mode: edit
Widgets
- Test
- Widget
- Expected
- Widget
Widget:Html5media
A video should be visible:
WikiEditor
This should load a tabbed WikiEditor: edit
YouTube