Wikizilla: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.
Admin Links
This should be a valid link: Special:AdminLinks
If you are an admin, you should see links by your personal tools.
AdvancedSearch
If #CirrusSearch is enabled, the extension produces the "Advanced Search" form on Special:Search.
AJAX Poll
- Test
- Expected
- A poll
AntiSpoof
On Special:CreateAccount, choosing a name with a different capitalization of an existing user (e.g. WikiTEQ
if the account WikiTeq
exists) should show an error (without needing to submit the form). Make sure to test with an account that does not have the override-antispoof
right (see Special:ListGroupRights for configuration).
BetaFeatures
Special:Preferences should have the "Beta Features" tab.
CategoryTree
A category tree should be shown:
CharInsert
CheckUser
This should be a valid link: Special:CheckUser
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
CiteThisPage
This should be a valid link: Special:CiteThisPage
Cloudflare
No test was invented. The extension must be listed on Special:Version.
CodeEditor
This should open in the ACE editor interface: edit
Comments
CommonsMetadata
The imageinfo
API query module should include added information sourced from this extension. This can be tested using Special:ApiSandbox.
- go to Special:ApiSandbox
- choose
action
to bequery
- set the
titles
to include the name of a file on the wiki - set the
prop
to beimageinfo
- set the
iiprop
to beextmetadata
- make the request
- verify that the results include commons metadata details
ConfirmEdit
skipcaptcha
right should be present here.
Description2
This should produce "Description2 works!" in the description meta tag of this page head. {{#description2:Description2 works!}}
Disambiguator
- Test
- Expected
- (nothing)
Echo
This should be a valid link: Special:Notifications
Elastica
Usually, it is a dependency of CirrusSearch. If CirrusSearch test is passed, Elastica works. The extension must be listed on Special:Version.
EmbedVideo
Three videos should be below:
Flow
- Note
- this extension make also be referred to as "Structured Discussions"
- If enabled in the Main namespace
- This link should bring up an interface with "About this board", "Browse Topics", "Recently active topics" labels.
Gadgets
- This link must not contain the error message "
Wikizilla does not have namespace "2300"
. - You have gadgets!
Godzilla font
If this is in Godzilla font, we're good.
GTag
The page source head section should contain a link to the script:
//www.googletagmanager.com/gtag/js
- Note
It will not load if you work under the account with gtag-exempt
permission. The permission is to be temporarily disabled to complete the test.
HeadScript
The contents of $wgHeadScriptCode
should be included in the <head>
of the page.
HoneyPot
On Special:CreateAccount there should be a hidden input field with the ID mw-input-trigger
. If you add a value to it ($('#mw-input-trigger').val('test');
) and try to create an account, you should get an error (either a message to leave the field empty, or a note about the wrong password if the wiki is configured to have a misleading message).
ImageMap
InputBox
- Test
- Expected
- An input box
Interwiki
This should be a valid link: Special:Interwiki
LabeledSectionTransclusion
- Test
- This is a test.
- Expected
- This is a test.
NOTE: In this case, the "Section by heading" must be a section in the page that is to be transcluded.
- Test
This is a section with a heading
- Expected
- This is a section with a heading
<section begin=test1 />This is a test.<section end=test1 /> Some text ... === Section by heading === This is a section with a heading
Lazyload
Pages with images should load the initial display without the image rendering properly, and the actual content will be later filled in via JavaScript.
LinkSuggest
When in the source editor, starting a link with [[
and then a few characters should generate a list of suggestions based on existing pages on the wiki.
LookupUser
This should be a valid link: LookupUser
MagicNoCache
The table cell should be empty:
MobileDetect
- Test
- MobileDesktop
- Expected
- Either "Desktop" or "Mobile"
MsUpload
This should have an upload box: edit
MultimediaViewer
Clicking this should pop up a nice lightbox image viewer or, in case MMV is disabled by default, this should open the file page with the Open in Media Viewer
button:
MyVariables
- Test
- 18.97.14.90
- Expected
- Your user name or the IP for anonymous users
Nuke
This should be a valid link: Special:Nuke
PageImages
ParserFunctions
- Test math functions
- 10
- Expected
- 10
- Test string functions
- disabled
- Expected
- disabled
Parsoid
Used to support the VisualEditor extension. If that extension is working, Parsoid works. The extension must be listed on Special:Version.
Poem
- Test
Une terre au flanc maigre, âpre, avare, inclément
Où les vivants pensifs travaillent tristement,
Et qui donne à regret à cette race humaine
Un peu de pain pour tant de labeur et de peine ;
Des hommes durs, éclos sur ces sillons ingrats ;
Des cités d’où s’en vont, en se tordant les bras,
La charité, la paix, la foi, sœurs vénérables ;
L’orgueil chez les puissants et chez les misérables ;
- Expected
- A nicely formatted poem
Popups
The following reference text should appear in a popup on hovering over: [1]
QuestyCaptcha
When performed without the skipcaptcha
right (see Special:ListGroupRights for who has that right), trying to do something that requires a captcha (for example, creating an account at Special:CreateAccount) should present a captcha in the form of a simple question and a text input for the answer.
Renameuser
This should be a valid link: Special:RenameUser
Replace Text
This should be a valid link: Special:ReplaceText
RottenLinks
This should be a valid link: Special:RottenLinks
SaveSpinner
When going to save a page, a popup spinner should appear while saving.
Scribunto
Module:String
- Test
- 15
- Expected
- 15
local p = {} function p.len(frame) local s = frame.args[1] return mw.ustring.len( s ) end return p
SecureLinkFixer
This link should show https://oauthdb.com/
on hover (in your browser info bar)
Sentry
The sentry.init
ResourceLoader module should be registered; in the developer console running mw.loader.getState('sentry.init');
should return a string (rather than null
).
Note: this only confirms that the extension is available, the actual integration of the logging with Sentry must be tested separately.
SimpleChanges
A list of recent changes should be displayed:
Skin per page
The skin for the current page has been set to timeless
. If the skin is installed, you'll see it on the current page. If it is not, you should see the empty line below (which is also okay):
If you see the <skin>timeless</skin>
code instead of the empty line, test failed.
SkinPerNamespace
The skins configured in $wgSkinPerNamespace
and $wgSkinPerSpecialPage
should be applied to pages in the configured namespaces and the individual special pages.
SocialProfile
You should see the default avatar icon below:
SpamBlacklist
This should display the spam blacklist log: spamblacklist.
SystemGifts
- Note: this extension is part of SocialProfile
Special:SystemGiftManager should exist and allow access to the gift system.
Tabs
- Test
- Expected
- A tabbed display
TemplateData
This link should take you to a page with the Manage TemplateData
button (normally below the first heading).
TemplateStyles
- Test
- red text
- Expected
- red text
<syntaxhighlight lang="css"> .templatestyles {
color: red;
}
</syntaxhighlight>
TextExtracts
The output should not contain Unrecognized parameter: exchars
error:
Thanks
Special:Log/thanks exists.
Twitter Tag
This should display a tweet:
UserActivity
- Note: this extension is part of SocialProfile
Special:UserActivity should exist and show user activity.
UserBoard
- Note: this extension is part of SocialProfile
Special:UserBoard should exist and show user messages.
UserGifts
- Note: this extension is part of SocialProfile
Special:ViewGifts should exist and show received gifts.
UserMerge
This should be a valid link: Special:UserMerge
UserRelationship
- Note: this extension is part of SocialProfile
Special:ViewRelationships should exist and show any relationships the user has.
UserStats
- Note: this extension is part of SocialProfile
Special:TopUsers should exist and show a ranking of users.
VisualEditor
This should load VisualEditor in edit mode: edit
VoteNY
A vote box should be here:
Widgets
- Test
- Widget
- Expected
- Widget
Alexa
This widget is defunct since the respective service is no longer available.
Facebook Like Box
This widget is defunct since the respective service is no longer available.
SVG
Tweet
Widget:YouTube
A YouTube video should be visible:
WikiEditor
This should load a tabbed WikiEditor: edit
WikiForum
This should be a valid link: Special:WikiForum
WikiSEO
The page source should contain:
<title>Your page title</title>
and:
<meta name="keywords" content="these,are,your,keywords"/>
There should also be a description, with
<meta name="description" content="Your meta description"/>
but the content may be different if another extension (like Description2) is installed and tries to set the description. As long as there is a description set and the page title and keywords match, having a different description should not be considered a failure.
WikiZillaBannerToggle
The "Appearance" tab on Special:Preferences should have "Top banner setting" as an option ("Banners" section).
YouTube
- ↑ The following reference text should appear in a popup on hovering over.