Difference between revisions of "Project:Extension tests"
(→GTag) |
|||
(4 intermediate revisions by 2 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 == | == 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: | This should be a greeny shadowed alert box with white text: | ||
<div class="alert bg-success shadow text-white font-weight-bold"> | <div class="alert bg-success shadow text-white font-weight-bold"> | ||
Line 16: | 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 22: | Line 29: | ||
;Test :{{#external_value:Located in}} | ;Test :{{#external_value:Located in}} | ||
;Expected :Europe | ;Expected :Europe | ||
+ | |||
+ | == GoogleDocTag == | ||
+ | The google documents should be embedded below (adjust the id if needed): | ||
+ | |||
+ | <gdoc id="1NQvQqWEisSgk_ynqbe85MvcDcGF6_eHwSpOeEp5muQo" /> | ||
== GTag == | == GTag == | ||
Line 40: | 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 47: | 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 60: | Line 85: | ||
; Expected : 10 | ; Expected : 10 | ||
− | ; Test string functions: {{#len:Icecream }} | + | ; Test string functions: {{#ifeq:{{#expr: 4 + 6}}|10|{{#ifeq:{{#len:Icecream }}|8|{{#len:Icecream }}|disabled}}}} |
− | ; Expected : 8 | + | ; 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: | This should be a valid link: | ||
[[Special:ReplaceText]] | [[Special:ReplaceText]] | ||
Line 78: | Line 112: | ||
This should be a valid link: | This should be a valid link: | ||
[[Special:BrowseData]] | [[Special:BrowseData]] | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== SemanticMediaWiki == | == SemanticMediaWiki == | ||
Line 98: | 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 == | == SubPageList == | ||
Line 108: | Line 132: | ||
;Expected | ;Expected | ||
0 | 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 == | == UrlGetParameters == | ||
; Test : {{#urlget:param|}} {{#if:{{#urlget:param|}}||[{{fullurl:{{FULLPAGENAME}}|param=Test}} Click here to test.]}} | ; Test : {{#urlget:param|}} {{#if:{{#urlget:param|}}||[{{fullurl:{{FULLPAGENAME}}|param=Test}} Click here to test.]}} | ||
; Expected : Test | ; Expected : Test | ||
+ | |||
+ | == Validator == | ||
+ | No test was invented. The extension must be listed on [[Special:Version]]. | ||
== Variables == | == Variables == | ||
; Test : {{#vardefine:test|testing}}{{#var:test}} | ; Test : {{#vardefine:test|testing}}{{#var:test}} | ||
; Expected : testing | ; 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 == | ||
Line 133: | Line 173: | ||
}} | }} | ||
The page source should contain: | The page source should contain: | ||
− | < | + | <pre> |
+ | <title></nowiki>Your page title<nowiki></title> | ||
+ | </pre> | ||
and: | and: | ||
Line 140: | Line 182: | ||
<meta name="keywords" content="these,are,your,keywords"/> | <meta name="keywords" content="these,are,your,keywords"/> | ||
<meta name="description" content="Your meta description"/> | <meta name="description" content="Your meta description"/> | ||
− | |||
</pre> | </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"/>