3 The purpose of these tests is to validate that a newly installed (or updated, or hacked, or whatever) mediawiki instance presents to the user a set of expected features, regardless of what language the wiki is in, or where it is installed, or what extensions it might have.
5 The tests are based on the basic definition of a wiki, a website where anyone
10 * can link one page to another page
14 Ruby 1.9.3 or higher is required
15 Firefox browser is required
24 Edit the environment_variables file with appropriate values for your wiki
25 $source environment_variables (example shown in bash shell)
27 bundle exec cucumber features/
29 Note that the acceptance tests will create three pages in your wiki entitled "Editing Test Page", "Link Source Test Page", and "Link Target Test Page". These pages may be deleted at any time. If you wish to re-run the tests at any time, these test pages will be re-created or reset to their original contents at the time that the tests run.
31 For more information about running Selenium tests please see
32 https://github.com/wikimedia/mediawiki-selenium
36 create_account.feature
37 * Checks three different ways to arrive on page allowing the user to create an account
39 create_and_follow_wiki_link.feature:
40 * uses the mediawiki API to create a link target page
41 * uses the mediawiki API to create a link source page
42 * navigates a browser to the link source page
43 * clicks the link in that page to the link target page
44 * validates that the browser has in fact followed the link to the target page correctly
47 * uses the mediawiki API to create an editable page on the wiki
48 * navigates a browser to the page
49 * clicks the Edit button to invoke the basic editor
50 * edits the page with a particular string containing a static part and also a quasi-unique random part
51 * saves the edited page
52 * checks that the saved page contains the particular string with which the page was edited
55 * navigates a browser to the default landing page of the wiki
56 * checks for the View History link on the landing page
57 * checks for the full set of of sidebar links that should exist on every mediawiki wiki
60 * similar to edit_page.feature but checks for an older version of the edited page
64 Tested on beta labs hewiki, dewiki, enwiki, and on a local installation of mediawiki