Difference between revisions of "Project:Extension tests"
en>User3 |
|||
(16 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | + | 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. | |
+ | [[Category:Tests]] | ||
− | + | == Bootstrap == | |
− | + | :This test should be done while using the Chameleon skin; [{{fullurl:{{FULLPAGENAME}}|useskin=chameleon}} view page with useskin=chameleon] | |
+ | This should be a greeny shadowed alert box with white text: | ||
+ | <div class="alert bg-success shadow text-white font-weight-bold"> | ||
+ | I am bootstrapped | ||
+ | </div> | ||
+ | |||
+ | == CirrusSearch == | ||
+ | ;For semantic wikis | ||
+ | The search results should display "'''ask'''" in bold: | ||
+ | * [{{SERVER}}{{SCRIPTPATH}}/index.php?search=insource%3A+%23ask%3A&title=Special%3ASearch&profile=all&fulltext=1 Search in the source] | ||
== DataTransfer == | == DataTransfer == | ||
Line 10: | Line 20: | ||
== DiscussionThreading == | == DiscussionThreading == | ||
Navigate to the [[{{TALKPAGENAME}}]], ensure there is a "Subject" field | Navigate to the [[{{TALKPAGENAME}}]], ensure there is a "Subject" field | ||
+ | |||
+ | == Elastica == | ||
+ | Usually, it is a dependency of CirrusSearch. If CirrusSearch test is passed, Elastica works. The extension must be listed on [[Special:Version]]. | ||
== ExternalData == | == ExternalData == | ||
Line 17: | Line 30: | ||
;Expected :Europe | ;Expected :Europe | ||
− | == | + | == GoogleDocTag == |
− | + | The google documents should be embedded below (adjust the id if needed): | |
+ | |||
+ | <gdoc id="1NQvQqWEisSgk_ynqbe85MvcDcGF6_eHwSpOeEp5muQo" /> | ||
+ | |||
+ | == GTag == | ||
+ | The page source head section should contain a link to the script: | ||
+ | <code>//www.googletagmanager.com/gtag/js</code> | ||
+ | |||
+ | ;Note | ||
+ | It will not load if you work under the account with <code>gtag-exempt</code> permission. The permission is to be temporarily disabled to complete the test. | ||
== InputBox == | == InputBox == | ||
Line 30: | Line 52: | ||
== Maps == | == Maps == | ||
+ | ;Variant 1 | ||
{{#display_map:address=Brandenburg Gate, Berlin, Germany|width=200|height=150|zoom=17|type=hybrid}} | {{#display_map:address=Brandenburg Gate, Berlin, Germany|width=200|height=150|zoom=17|type=hybrid}} | ||
;Test :{{#geocode:Brandenburg Gate, Berlin, Germany}} | ;Test :{{#geocode:Brandenburg Gate, Berlin, Germany}} | ||
+ | ;Expected :52° 30' 58.59" N, 13° 22' 39.73" E | ||
+ | |||
+ | ;Variant 2 | ||
+ | {{#display_map: Brandenburg Gate, Berlin~Brandenburg Gate }} | ||
+ | ;Test :{{#geocode:Brandenburg Gate}} | ||
;Expected :52° 30' 58.59" N, 13° 22' 39.73" E | ;Expected :52° 30' 58.59" N, 13° 22' 39.73" E | ||
Line 37: | Line 65: | ||
This should be a valid link: | This should be a valid link: | ||
[[Special:Nuke]] | [[Special:Nuke]] | ||
+ | |||
+ | == OpenIDConnect == | ||
+ | No test was invented. The extension must be listed on [[Special:Version]]. | ||
+ | |||
+ | == PageExchange == | ||
+ | This should be a valid link: | ||
+ | [[Special:Packages]] | ||
== PageForms == | == PageForms == | ||
Line 46: | Line 81: | ||
[[Special:EditSchema]] | [[Special:EditSchema]] | ||
− | == | + | == ParserFunctions == |
+ | ; Test math functions: {{#expr: 4 + 6}} | ||
+ | ; Expected : 10 | ||
+ | |||
+ | ; Test string functions: {{#ifeq:{{#expr: 4 + 6}}|10|{{#ifeq:{{#len:Icecream }}|8|{{#len:Icecream }}|disabled}}}} | ||
+ | ; Expected : {{#ifeq:{{#len:Icecream }}|8|8|disabled}} | ||
+ | |||
+ | == ParserHooks == | ||
+ | No test was invented. The extension must be listed on [[Special:Version]]. | ||
+ | |||
+ | == PluggableAuth == | ||
+ | No test was invented. The extension must be listed on [[Special:Version]]. | ||
+ | |||
+ | == Realnames == | ||
+ | The list of users on [[Special:ListUsers]] should include some users' real names. | ||
+ | |||
+ | == Renameuser == | ||
This should be a valid link: | This should be a valid link: | ||
[[Special:RenameUser]] | [[Special:RenameUser]] | ||
+ | |||
+ | == ReplaceText == | ||
+ | This should be a valid link: | ||
+ | [[Special:ReplaceText]] | ||
== RSS == | == RSS == | ||
Line 57: | Line 112: | ||
This should be a valid link: | This should be a valid link: | ||
[[Special:BrowseData]] | [[Special:BrowseData]] | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== SemanticMediaWiki == | == SemanticMediaWiki == | ||
Line 77: | Line 119: | ||
== Semantic Result Formats == | == Semantic Result Formats == | ||
− | ; Test | + | ; Test (old wikis) |
{{#ask:[[{{FULLPAGENAME}}]]|?Test|format=datatables}} | {{#ask:[[{{FULLPAGENAME}}]]|?Test|format=datatables}} | ||
; Expected | ; Expected | ||
: A nice-looking DataTable with a search field | : A nice-looking DataTable with a search field | ||
+ | |||
+ | == Sentry == | ||
+ | No test was invented. The extension must be listed on [[Special:Version]]. | ||
+ | |||
+ | == SubPageList == | ||
+ | ;Result | ||
+ | {{#subpagecount: }} | ||
+ | ;Expected | ||
+ | 0 | ||
+ | |||
+ | == TextExtracts == | ||
+ | The output should not contain <code>Unrecognized parameter: exchars</code> error: | ||
+ | * [{{SERVER}}{{SCRIPTPATH}}/api.php?action=query&prop=extracts&exchars=175&format=json&titles={{FULLPAGENAMEE}} Extract] | ||
+ | |||
+ | == UrlGetParameters == | ||
+ | ; Test : {{#urlget:param|}} {{#if:{{#urlget:param|}}||[{{fullurl:{{FULLPAGENAME}}|param=Test}} Click here to test.]}} | ||
+ | ; Expected : Test | ||
+ | |||
+ | == Validator == | ||
+ | No test was invented. The extension must be listed on [[Special:Version]]. | ||
+ | |||
+ | == Variables == | ||
+ | ; Test : {{#vardefine:test|testing}}{{#var:test}} | ||
+ | ; Expected : testing | ||
+ | |||
+ | == VEForAll == | ||
+ | No test was invented. The extension must be listed on [[Special:Version]]. | ||
== VisualEditor == | == VisualEditor == | ||
This should load VisualEditor in edit mode: | This should load VisualEditor in edit mode: | ||
[{{fullurl:Main Page|veaction=edit}} edit] | [{{fullurl:Main Page|veaction=edit}} edit] | ||
+ | |||
+ | == Widgets == | ||
+ | ;Test | ||
+ | :{{ns:Widget}} | ||
+ | ;Expected | ||
+ | :Widget | ||
== WikiEditor == | == WikiEditor == | ||
This should load a tabbed WikiEditor: | This should load a tabbed WikiEditor: | ||
[{{fullurl:Main Page|action=edit}} edit] | [{{fullurl:Main Page|action=edit}} edit] | ||
+ | |||
+ | == WikiSEO == | ||
+ | {{#seo: | ||
+ | |title=Your page title | ||
+ | |titlemode=append | ||
+ | |keywords=these,are,your,keywords | ||
+ | |description=Your meta description | ||
+ | }} | ||
+ | The page source should contain: | ||
+ | <pre> | ||
+ | <title></nowiki>Your page title<nowiki></title> | ||
+ | </pre> | ||
+ | |||
+ | and: | ||
+ | |||
+ | <pre> | ||
+ | <meta name="keywords" content="these,are,your,keywords"/> | ||
+ | <meta name="description" content="Your meta description"/> | ||
+ | </pre> |
Latest revision as of 13:07, August 22, 2024
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.
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
CirrusSearch
- For semantic wikis
The search results should display "ask" in bold:
DataTransfer
This should be a valid link: Special:ImportCSV
DiscussionThreading
Navigate to the Project talk:Extension tests, ensure there is a "Subject" field
Elastica
Usually, it is a dependency of CirrusSearch. If CirrusSearch test is passed, Elastica works. The extension must be listed on Special:Version.
ExternalData
- Test
- Europe
- Expected
- Europe
GoogleDocTag
The google documents should be embedded below (adjust the id if needed):
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.
InputBox
- Test
- Expected
- An input box
Maps
- Variant 1
- Test
- 52° 30' 58.57" N, 13° 22' 39.73" E
- Expected
- 52° 30' 58.59" N, 13° 22' 39.73" E
- Variant 2
- Test
- 52° 30' 58.57" N, 13° 22' 39.73" E
- Expected
- 52° 30' 58.59" N, 13° 22' 39.73" E
Nuke
This should be a valid link: Special:Nuke
OpenIDConnect
No test was invented. The extension must be listed on Special:Version.
PageExchange
This should be a valid link: Special:Packages
PageForms
This should be a valid link: Special:Forms
PageSchemas
This should be a valid link: Special:EditSchema
ParserFunctions
- Test math functions
- 10
- Expected
- 10
- Test string functions
- 8
- Expected
- 8
ParserHooks
No test was invented. The extension must be listed on Special:Version.
PluggableAuth
No test was invented. The extension must be listed on Special:Version.
Realnames
The list of users on Special:ListUsers should include some users' real names.
Renameuser
This should be a valid link: Special:RenameUser
ReplaceText
This should be a valid link: Special:ReplaceText
RSS
One post from the Wikimedia blog feed should be below, with all the "a" characters highlighted:
- Wikimania 2024 in Poland celebrates global volunteers who make Wikipedia and sister projects possible
- The nineteenth edition of the global event will take place in Katowice, Poland (the 2024 European City of Science), from 7 - 10 August.
The post <a href="https://wikimediafoundation... - Wikimedia Foundation 2024-07-31 08:00:00
SemanticDrilldown
This should be a valid link: Special:BrowseData
SemanticMediaWiki
Semantic Result Formats
- Test (old wikis)
- Expected
- A nice-looking DataTable with a search field
Sentry
No test was invented. The extension must be listed on Special:Version.
SubPageList
- Result
0
- Expected
0
TextExtracts
The output should not contain Unrecognized parameter: exchars
error:
UrlGetParameters
- Test
- Click here to test.
- Expected
- Test
Validator
No test was invented. The extension must be listed on Special:Version.
Variables
- Test
- testing
- Expected
- testing
VEForAll
No test was invented. The extension must be listed on Special:Version.
VisualEditor
This should load VisualEditor in edit mode: edit
Widgets
- Test
- Widget
- Expected
- Widget
WikiEditor
This should load a tabbed WikiEditor: edit
WikiSEO
The page source should contain:
<title></nowiki>Your page title<nowiki></title>
and:
<meta name="keywords" content="these,are,your,keywords"/> <meta name="description" content="Your meta description"/>