Difference between revisions of "Wiki Acceptance Tests"
Rand Linden (talk | contribs) |
Rand Linden (talk | contribs) |
||
(24 intermediate revisions by 4 users not shown) | |||
Line 3: | Line 3: | ||
In all cases, the pages should look the same as they did previously. | In all cases, the pages should look the same as they did previously. | ||
The best way to ensure this would be to compare their appearance in the new installation with their appearance in the old (existing) installation. | The best way to ensure this would be to compare their appearance in the new installation with their appearance in the old (existing) installation. | ||
== Upgrade notes == | |||
With this upgrade, we are also upgrading a number of extensions. There may be some backward-incompatibilities that require content changes: | |||
* The newer version of the ImageMap extension requires polygon shapes to have an even number of points. | |||
=== Browser compatibility === | |||
Test with the following browsers: | |||
* FireFox | |||
* Chrome | |||
* Safari | |||
* Opera | |||
* IE | |||
I'm not too worried about versions... as long as we're hitting with a version within the last two major releases.. nothing too old (aka Chrome 5 or 6, FF 3.5 or 3.6, IE 7 or 8, etc) | |||
=== Time === | |||
* #time:Y-m-dTH:i:s+00:00 - {{#time:Y-m-dTH:i:s+00:00}} | |||
* #time: Y-m-d H:i:s - {{#time: Y-m-d H:i:s}} | |||
* #time: r|now - {{#time: r|now}} | |||
*<tt><nowiki>{{#time: Y-m-d }}</nowiki></tt> → '''{{#time: Y-m-d }}''' | |||
*<tt><nowiki>{{#timel: Y-m-d }}</nowiki></tt> → '''{{#timel: Y-m-d }}''' | |||
*<tt><nowiki>{{#time: Y F d h:i:s}}</nowiki></tt> → '''{{#time: Y F d H:i:s}}''' | |||
*<tt><nowiki>{{#timel: Y F d h:i:s}}</nowiki></tt> → '''{{#timel: Y F d H:i:s}}''' | |||
*<tt><nowiki>{{#time:c|11am PST}}</nowiki></tt> '''{{#time:c|11am PST}}''' | |||
*<tt><nowiki>{{#time:c|11am GMT}}</nowiki></tt> '''{{#time:c|11am GMT}}''' | |||
*<tt><nowiki>{{#timel:c|11am PST}}</nowiki></tt> '''{{#timel:c|11am PST}}''' | |||
*<tt><nowiki>{{#timel:c|11am GMT}}</nowiki></tt> '''{{#timel:c|11am GMT}}''' | |||
* UTC: {{#time:c}} | |||
* Local: {{#timel:c}} | |||
== Basic content tests == | == Basic content tests == | ||
* [[Main Page]] - Check that it looks the same. | * [[Main Page]] - Check that it looks the same. | ||
=== Images and image pages === | |||
Make sure all images appear properly, including the SL logo at upper left, CC and MW logos at the bottom, and uploaded images. | |||
Here are a few examples: | |||
* [[:File:Doc office hour 2009-01-14.jpg]] | |||
* [[:File:Kb ARC Default .png]] | |||
* [[:File:V1.23 Cluttered Screen.jpg]] | |||
* [[:File:Torley%27s_awesome_People_Tool_pic.jpg]] | |||
=== Special pages === | === Special pages === | ||
Line 13: | Line 59: | ||
=== API === | === API === | ||
To check that the API is active, click this link: | To check that the API is active, click this link: | ||
{{SERVER}}{{SCRIPTPATH}}/api.php | |||
=== HTTPS === | |||
Nowhere on the site should there be HTTPS errors (i.e. broken lock in the browser), especially not on the Login page. Acid test is IE, which complains the most. Chrome has a weird bug where sometimes it'll complain about HTTPS problems while no other browser does. | |||
Pages to test: | |||
* Front page | |||
* Login page | |||
* User page (Torley's?) | |||
* File:Image page | |||
=== Namespaces === | === Namespaces === | ||
The following query returns a list of the namespaces defined: | The following query returns a list of the namespaces defined: | ||
* {{SERVER}}{{SCRIPTPATH}}/api.php?action=query&meta=siteinfo&siprop=general|namespaces|namespacealiases|statistics | |||
This should return the following: | This should return the following: | ||
<pre> | <pre> | ||
Line 79: | Line 136: | ||
</api> | </api> | ||
</pre> | </pre> | ||
=== Protected namespaces === | |||
* Make sure only Lindens can edit pages in the LLO namespacee, e.g. [[Linden Lab Official:Abandoned Land FAQ]]. | |||
=== Search === | === Search === | ||
Line 89: | Line 150: | ||
Go to [[Wiki Acceptance Test/Subpages]] -- first line should just say "Wiki Acceptance Test", second line should just say "Subpages". If they both say "Wiki Acceptance Test/Subpages", then this isn't working right. | Go to [[Wiki Acceptance Test/Subpages]] -- first line should just say "Wiki Acceptance Test", second line should just say "Subpages". If they both say "Wiki Acceptance Test/Subpages", then this isn't working right. | ||
== Notifications == | |||
Check if email is sent when: | |||
* Your [[Special:Preferences]] are set, including your email address | |||
* A page on your watchlist is changed | |||
== Extensions == | == Extensions == | ||
Line 110: | Line 177: | ||
Copied from [[User:Ugleh Ulrik]]: | Copied from [[User:Ugleh Ulrik]]: | ||
'''Example of known error''': | |||
{| cellspacing="0" cellpadding="0" border="0" | {| cellspacing="0" cellpadding="0" border="0" | ||
|colspan="3"|<imagemap> | |colspan="3"|<imagemap> | ||
Line 133: | Line 201: | ||
Image:Ugleh_chat_bottom.png| | Image:Ugleh_chat_bottom.png| | ||
poly 0 [[User:Ugleh Ulrik]] | poly 0 [[User:Ugleh Ulrik]] | ||
desc none | |||
</imagemap> | |||
|- | |||
|} | |||
'''Example of corrected image map''': | |||
{| cellspacing="0" cellpadding="0" border="0" | |||
|colspan="3"|<imagemap> | |||
Image:Ugleh_chat_top.png | |||
poly 0 0 [[User:Ugleh Ulrik]] | |||
desc none | |||
</imagemap> | |||
|- | |||
|<imagemap> | |||
Image:Ugleh_chat_left.png | |||
poly 0 0 [[User:Ugleh Ulrik]] | |||
desc none | |||
</imagemap> | |||
|style="background:#3E3E3E;" valign="top" width="394" align="left"|{{:User:Ugleh_Ulrik/quote}} | |||
|<imagemap> | |||
Image:Ugleh_chat_right.png | |||
poly 0 0 [[User:Ugleh Ulrik]] | |||
desc none | |||
</imagemap> | |||
|- | |||
|colspan="3"|<imagemap> | |||
Image:Ugleh_chat_bottom.png| | |||
poly 0 0 [[User:Ugleh Ulrik]] | |||
desc none | desc none | ||
</imagemap> | </imagemap> | ||
Line 148: | Line 244: | ||
===SimpleTable=== | ===SimpleTable=== | ||
See [[Performance Testers#Results]]. | |||
===Variables=== | ===Variables=== | ||
Line 240: | Line 336: | ||
[[Category:Wiki]] | [[Category:Wiki]] | ||
===ImageMap and Variables over HTTP=== | |||
~var={{#vardefine:var|value}}{{#var:var|has no value}}~ | |||
<imagemap> | |||
Image:Ugleh_chat_bottom.png| | |||
poly 0 0 [[User:Ugleh Ulrik]] | |||
desc none | |||
</imagemap> | |||
~var={{#var:var|has no value}}~ | |||
HTTP: [http://{{SERVERNAME}}{{SCRIPTPATH}}/index.php?title={{FULLPAGENAMEE}} {{FULLPAGENAME}}] | |||
HTTPS: [https://{{SERVERNAME}}{{SCRIPTPATH}}/index.php?title={{FULLPAGENAMEE}} {{FULLPAGENAME}}] |
Latest revision as of 15:01, 14 June 2011
When upgrading the wiki, or moving to a new operational location, use these tests to ensure that everything is functional.
In all cases, the pages should look the same as they did previously. The best way to ensure this would be to compare their appearance in the new installation with their appearance in the old (existing) installation.
Upgrade notes
With this upgrade, we are also upgrading a number of extensions. There may be some backward-incompatibilities that require content changes:
- The newer version of the ImageMap extension requires polygon shapes to have an even number of points.
Browser compatibility
Test with the following browsers:
- FireFox
- Chrome
- Safari
- Opera
- IE
I'm not too worried about versions... as long as we're hitting with a version within the last two major releases.. nothing too old (aka Chrome 5 or 6, FF 3.5 or 3.6, IE 7 or 8, etc)
Time
- #time:Y-m-dTH:i:s+00:00 - 2024-10-31UTC10:29:50+00:00
- #time: Y-m-d H:i:s - 2024-10-31 10:29:50
- #time: r|now - Thu, 31 Oct 2024 10:29:50 +0000
- {{#time: Y-m-d }} → 2024-10-31
- {{#timel: Y-m-d }} → 2024-10-31
- {{#time: Y F d h:i:s}} → 2024 October 31 10:29:50
- {{#timel: Y F d h:i:s}} → 2024 October 31 03:29:50
- {{#time:c|11am PST}} 2024-10-31T19:00:00+00:00
- {{#time:c|11am GMT}} 2024-10-31T11:00:00+00:00
- {{#timel:c|11am PST}} 2024-10-31T12:00:00-07:00
- {{#timel:c|11am GMT}} 2024-10-31T04:00:00-07:00
- UTC: 2024-10-31T10:29:50+00:00
- Local: 2024-10-31T03:29:50-07:00
Basic content tests
- Main Page - Check that it looks the same.
Images and image pages
Make sure all images appear properly, including the SL logo at upper left, CC and MW logos at the bottom, and uploaded images. Here are a few examples:
- File:Doc office hour 2009-01-14.jpg
- File:Kb ARC Default .png
- File:V1.23 Cluttered Screen.jpg
- File:Torley's_awesome_People_Tool_pic.jpg
Special pages
- Special:Recentchanges
- Special:Version - check list of extensions and make sure it matches.
API
To check that the API is active, click this link: https://wiki.secondlife.com/w/api.php
HTTPS
Nowhere on the site should there be HTTPS errors (i.e. broken lock in the browser), especially not on the Login page. Acid test is IE, which complains the most. Chrome has a weird bug where sometimes it'll complain about HTTPS problems while no other browser does.
Pages to test:
- Front page
- Login page
- User page (Torley's?)
- File:Image page
Namespaces
The following query returns a list of the namespaces defined:
This should return the following:
<?xml version="1.0"?> <api> <query> <general mainpage="Main Page" base="https://wiki.secondlife.com/wiki/Main_Page" sitename="Second Life Wiki" generator="MediaWiki 1.14.1" rev="34" case="first-letter" rights="Creative Commons Attribution-Share Alike 3.0" lang="en" fallback8bitEncoding="windows-1252" writeapi="" timezone="UTC" timeoffset="0" /> <namespaces> <ns id="-2" canonical="Media">Media</ns> <ns id="-1" canonical="Special">Special</ns> <ns id="0" subpages="" /> <ns id="1" subpages="" canonical="Talk">Talk</ns> <ns id="2" subpages="" canonical="User">User</ns> <ns id="3" subpages="" canonical="User talk">User talk</ns> <ns id="4" subpages="" canonical="Project">Project</ns> <ns id="5" subpages="" canonical="Project talk">Project talk</ns> <ns id="6" subpages="" canonical="File">File</ns> <ns id="7" subpages="" canonical="File talk">File talk</ns> <ns id="8" subpages="" canonical="MediaWiki">MediaWiki</ns> <ns id="9" subpages="" canonical="MediaWiki talk">MediaWiki talk</ns> <ns id="10" subpages="" canonical="Template">Template</ns> <ns id="11" subpages="" canonical="Template talk">Template talk</ns> <ns id="12" subpages="" canonical="Help">Help</ns> <ns id="13" subpages="" canonical="Help talk">Help talk</ns> <ns id="14" subpages="" canonical="Category">Category</ns> <ns id="15" subpages="" canonical="Category talk">Category talk</ns> <ns id="100" subpages="" canonical="Linden Lab Official">Linden Lab Official</ns> <ns id="101" subpages="" canonical="Linden Lab Official talk">Linden Lab Official talk</ns> <ns id="102" subpages="" canonical="Viewerhelp">Viewerhelp</ns> <ns id="103" subpages="" canonical="Viewerhelp talk">Viewerhelp talk</ns> <ns id="104" subpages="" canonical="Article officiel de Linden Lab">Article officiel de Linden Lab</ns> <ns id="105" subpages="" canonical="Article officiel de Linden Lab talk">Article officiel de Linden Lab talk</ns> <ns id="106" subpages="" canonical="Linden Lab公認">Linden Lab公認</ns> <ns id="107" subpages="" canonical="Linden Lab公認 talk">Linden Lab公認 talk</ns> <ns id="108" subpages="" canonical="Articolo ufficiale Linden Lab">Articolo ufficiale Linden Lab</ns> <ns id="109" subpages="" canonical="Articolo ufficiale Linden Lab talk">Articolo ufficiale Linden Lab talk</ns> <ns id="110" subpages="" canonical="Artigo oficial da Linden Lab">Artigo oficial da Linden Lab</ns> <ns id="111" subpages="" canonical="Artigo oficial da Linden Lab talk">Artigo oficial da Linden Lab talk</ns> <ns id="112" subpages="" canonical="Artículo oficial de Linden Lab">Artículo oficial de Linden Lab</ns> <ns id="113" subpages="" canonical="Artículo oficial de Linden Lab talk">Artículo oficial de Linden Lab talk</ns> <ns id="114" subpages="" canonical="Linden Lab Offiziell">Linden Lab Offiziell</ns> <ns id="115" subpages="" canonical="Linden Lab Offiziell talk">Linden Lab Offiziell talk</ns> <ns id="274" canonical="Widget">Widget</ns> <ns id="275" canonical="Widget talk">Widget talk</ns> </namespaces> <namespacealiases> <ns id="100">LLO</ns> <ns id="114">LLOde</ns> <ns id="104">LLOfr</ns> <ns id="106">LLOja</ns> <ns id="108">LLOit</ns> <ns id="110">LLOpt</ns> <ns id="112">LLOes</ns> <ns id="6">Image</ns> <ns id="7">Image talk</ns> </namespacealiases> <statistics pages="33962" articles="8215" views="118745206" edits="187815" images="5426" users="50807" activeusers="240" admins="33" jobs="0" /> </query> </api>
Protected namespaces
- Make sure only Lindens can edit pages in the LLO namespacee, e.g. Linden Lab Official:Abandoned Land FAQ.
Search
Test "Google Search" in the sidebar:
- Enter a search term.
- Click Google Search.
Make sure it returns reasonable results.
Subpages in main namespace
Go to Wiki Acceptance Test/Subpages -- first line should just say "Wiki Acceptance Test", second line should just say "Subpages". If they both say "Wiki Acceptance Test/Subpages", then this isn't working right.
Notifications
Check if email is sent when:
- Your Special:Preferences are set, including your email address
- A page on your watchlist is changed
Extensions
Check that Special:Version lists the same set of installed extensions.
Cite
The special page Special:Cite should exist.
Flagged Revisions
- Edit a page in the Knowledge Base.
- Check that the edit becomes a "draft" revision.
- As a reviewer user, approve the edit, and check that it becomes the "stable" revision.
Check the Admin Dashboard to ensure that pages show up in the various FR special pages.
ImageMap
Copied from User:Ugleh Ulrik:
Example of known error:
Error: Found poly with odd number of coordinates on line 3 | ||
Template:Db | Error: Found poly with odd number of coordinates on line 3 | |
Error: Found poly with odd number of coordinates on line 3 |
Example of corrected image map:
Template:Db | ||
MathStatFunctions
If these show the correct values, then this extension is working:
- pi = {{ #const: pi }}
- e = {{ #const: e }}
- sqrt(2) = {{#const:sqrt(2)}}
SimpleTable
See Performance Testers#Results.
Variables
Set the variable "myvar" to be "1234:
If the following shows "1234", then this is working properly:
The value is >>> 1234 <<<
VideoFlash
Widgets
Check that the following list of widgets shows up: https://wiki.secondlife.com/w/index.php?title=Special%3AAllPages&from=&to=&namespace=274
- Widget:Blip.tv
- Widget:Chat Transcript
- Widget:Feed
- Widget:Flickr
- Widget:Flickr/SlideShow
- Widget:Flickr/Slideshow
- Widget:FlickrShow
- Widget:Google Gadget
- Widget:Scribd
- Widget:SlideShare
- Widget:Twitter
- Widget:Vimeo
- Widget:Widgetbox
- Widget:YouTube
- Widget:YouTubeChannel
Do we need to test each individual widget? Probably not. Maybe just test a couple.
Add metas
Check that each page has
<meta name="mat" content="PG_NOT" />
in its <head>.
Breadcrumbs2
Check that MediaWiki:Breadcrumbs exists and that breadcrumbs are displayed properly.
GeSHiHighlight
If the following is displayed as formatted text the extension is working.
<lsl>default { state_entry() { llOwnerSay(""); } }</lsl>
Also see Syntax Highlighting Examples.
Google Analytics Integration
Check that each wiki page has the following at the bottom:
<script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> var pageTracker = _gat._getTracker("UA-190376-9"); pageTracker._initData(); pageTracker._trackPageview(); </script>
Check that a page in the LLO namespace shows the following header and footer:
Rename User
See if Special:RenameUser exists.
ReplaceText
If this page exists, then the extension is installed. Special:ReplaceText. Try it out and confirm that it works properly.
ParserFunctions
If what follows is the current date and time formatted as Y m d H:i:s then this extension is working.
2024 10 31 10:29:50
StringFunctions
If the number on the line below is 4, then this extension is working.
4
ImageMap and Variables over HTTP
~var=value~
~var=value~
HTTP: Wiki Acceptance Tests HTTPS: Wiki Acceptance Tests