X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=tests%2Fselenium%2Fwdio-mediawiki%2FREADME.md;h=016e6e3b4343d265dcb898466f03badc527b2e82;hb=1955a8aa5;hp=260dc77667af8ed3f183011b4d0260787f3d1219;hpb=4077b57759756ecd0d25427ec9598feb28a28ac1;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/selenium/wdio-mediawiki/README.md b/tests/selenium/wdio-mediawiki/README.md index 260dc77667..016e6e3b43 100644 --- a/tests/selenium/wdio-mediawiki/README.md +++ b/tests/selenium/wdio-mediawiki/README.md @@ -8,7 +8,7 @@ A plugin for [WebdriverIO](http://webdriver.io/) providing utilities to simplify The `Page` class is a base class for following the [Page Objects Pattern](http://webdriver.io/guide/testrunner/pageobjects.html). -* `openTitle( title [, Object query ] )` +* `openTitle( title [, Object query [, string fragment ] ] )` The convention is for implementations to extend this class and provide an `open()` method that calls `super.openTitle()`, as well as add various getters for elements on the page. @@ -19,12 +19,27 @@ See [BlankPage](./BlankPage.js) and [specs/BlankPage](./specs/BlankPage.js) for Utilities to interact with the MediaWiki API. Uses the [mwbot](https://github.com/Fannon/mwbot) library. -Actions are performed logged-in using `browser.options.username` and `browser.options.password`, +Actions are performed logged-in using `browser.config.mwUser` and `browser.config.mwPwd`, which typically come from `MEDIAWIKI_USER` and `MEDIAWIKI_PASSWORD` environment variables. -* `edit(title, content)` -* `delete(title, reason)` -* `createAccount(username, password)` +* `edit(string title, string content [, string username [, string password [, string baseUrl ] ] ])` +* `delete(string title, string reason)` +* `createAccount(string username, string password)` +* `blockUser([ string username [, string expiry ] ])` +* `unblockUser([ string username ])` +* `bot([string username [, string password [, string baseUrl ] ] ])` + +### RunJobs + +Use the static `RunJobs.run()` method to ensure that any queued jobs are executed before +making assertions that depend on its outcome. + +### Util + +`Util` is a collection of popular utility methods. + +* `getTestString([ string prefix ])` +* `waitForModuleState(string moduleName [, string moduleStatus [, number timeout ] ])` ## Versioning