diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:17:42 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:17:42 -0400 |
commit | f7d4cf9ed0ae68fec630d14e8f6aade38e49f036 (patch) | |
tree | a730c57badbe0e2f0f064ca2006c82d4b6ed54ea /tests/browser/README.mediawiki | |
parent | aee35e4a93d105024bcae947cd8b16c962191f5c (diff) | |
parent | 5d1e7dd0ccda0984ccf3e8e3d0f88ac888b05819 (diff) |
Merge commit '5d1e7'
Diffstat (limited to 'tests/browser/README.mediawiki')
-rw-r--r-- | tests/browser/README.mediawiki | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/tests/browser/README.mediawiki b/tests/browser/README.mediawiki new file mode 100644 index 00000000..22657627 --- /dev/null +++ b/tests/browser/README.mediawiki @@ -0,0 +1,64 @@ +Purpose: + +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. + +The tests are based on the basic definition of a wiki, a website where anyone + +* can read a page +* can create a page +* can edit a page +* can link one page to another page + +Install: + +Ruby 1.9.3 or higher is required +Firefox browser is required +:: + cd /tests/browser + gem update --system + gem install bundler + bundle install + +Run the tests: + +Edit the environment_variables file with appropriate values for your wiki +$source environment_variables (example shown in bash shell) + +bundle exec cucumber features/ + +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. + +For more information about running Selenium tests please see +https://github.com/wikimedia/mediawiki-selenium + +Details: + +create_account.feature +* Checks three different ways to arrive on page allowing the user to create an account + +create_and_follow_wiki_link.feature: +* uses the mediawiki API to create a link target page +* uses the mediawiki API to create a link source page +* navigates a browser to the link source page +* clicks the link in that page to the link target page +* validates that the browser has in fact followed the link to the target page correctly + +edit_page.feature: +* uses the mediawiki API to create an editable page on the wiki +* navigates a browser to the page +* clicks the Edit button to invoke the basic editor +* edits the page with a particular string containing a static part and also a quasi-unique random part +* saves the edited page +* checks that the saved page contains the particular string with which the page was edited + +main_page.feature: +* navigates a browser to the default landing page of the wiki +* checks for the View History link on the landing page +* checks for the full set of of sidebar links that should exist on every mediawiki wiki + +view_history.feature +* similar to edit_page.feature but checks for an older version of the edited page + +Notes: + +Tested on beta labs hewiki, dewiki, enwiki, and on a local installation of mediawiki
\ No newline at end of file |