Wikizilla:Extension tests

From Wikizilla, the kaiju encyclopedia
Jump to navigationJump to search
Cannot use skin 'timeless' as it is unknown or invalid.

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
Question
Voted for "Choice 3" on 30 December 2023 at 19:36. Change your vote by clicking another choice.
2
1
4
5
12 votes since its creation on 00:34, 18 April 2019.
poll-id 99682D26EB606BA0DAF4C95522104E0F

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

Test
Á
Expected
Á

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]
  1. Test
Expected
Text[1]
  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

Loading 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 be query
  • set the titles to include the name of a file on the wiki
  • set the prop to be imageinfo
  • set the iiprop to be extmetadata
  • 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

Dr Johnson - Dictionary writerBoswell - BiographerSir Joshua Reynolds - HostDavid Garrick - actorEdmund Burke - statesmanPasqual Paoli - Corsican patriotCharles Burney - music historianThomas Warton - poet laureateOliver Goldsmith - writerprob.The Infant Academy 1782unknown paintingAn unknown portraitservant - poss. Francis BarberUse button to enlarge or use hyperlinksDining room with nine men seated around a table. The dinner has been finished, and a large man at the head talks and gesticulates while the others eagerly listen. The men wear wigs and clothing of late 18th century Britain, and the furniture, hangings, and chandelier are of similar vintage. A liveried servant is entering with a tray bearing two high-shouldered decanters of wine.
Image map example. Clicking on a person in the picture causes the browser to load the appropriate article.

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
Mobile
Desktop
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:

JoshuaReynoldsParty.jpg

MyVariables

Test 
18.227.46.29
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
Source of Module:String
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:

  • avatar

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
Lorem ipsum dolor sit amet.
consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
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
Source of Project:Extension_tests/TemplateStyles.css (make sure the content model is set to "Sanitized CSS")

<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:

2

Widgets

Test
Widget
Expected
Widget

Alexa

This widget is defunct since the respective service is no longer available.

Facebook

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

  1. The following reference text should appear in a popup on hovering over.