Difference between revisions of "Project:Extension tests"

From Earth Science Information Partners (ESIP)
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== Confirm User Accounts ==
+
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]]
  
The should be a "Request an account" link at the top right
+
== Bootstrap ==
when logged out
+
: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
  
== googleAnalytics ==
+
== GoogleDocTag ==
Check the HTML source of this page.
+
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]]
  
== Rename user ==
+
== 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 58: Line 113:
 
[[Special:BrowseData]]
 
[[Special:BrowseData]]
  
== Semantic Internal Objects ==
+
== SemanticInternalObjects ==
 
{{#set_internal:Part of recipe
 
{{#set_internal:Part of recipe
 
|Has quantity=1
 
|Has quantity=1
Line 77: Line 132:
  
 
== 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 ==
Line 98: Line 186:
 
}}
 
}}
 
The page source should contain:
 
The page source should contain:
<nowiki><title></nowiki>{{FULLPAGENAME}} - Your page title<nowiki></title></nowiki>
+
<pre>
 +
<title></nowiki>Your page title<nowiki></title>
 +
</pre>
  
 
and:
 
and:
Line 105: Line 195:
 
<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"/>
<meta name="twitter:description" content="Your meta description"/>
 
 
</pre>
 
</pre>

Latest revision as of 01:33, August 17, 2023

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
Loading map...
Test
52° 30' 58.57" N, 13° 22' 39.73" E
Expected
52° 30' 58.59" N, 13° 22' 39.73" E
Variant 2
Loading map...
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:

“Where time stands still”: The winners of Wiki Loves Monuments 2023
Out of nearly 200,000 submissions from 4,700 participants in 45+ countries, fifteen winning images were announced today in the fourteenth annual Wiki Loves Monuments photography contest.
The po...
Wikimedia Foundation 2024-03-26 14:27:06

SemanticDrilldown

This should be a valid link: Special:BrowseData

SemanticInternalObjects

  • Expected: 1
  • Actual: 1

SemanticMediaWiki

Test
Test
Expected
Test
There should be a factbox at the page bottom.

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"/>
... more about "Extension tests"
Has subobject"Has subobject" is a predefined property representing a container construct and is provided by Semantic MediaWiki.