X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=tests%2Fselenium%2Fwdio-mediawiki%2FREADME.md;h=016e6e3b4343d265dcb898466f03badc527b2e82;hb=1955a8aa5;hp=dc16e816d20ddadce44f445803ddbaaa4443e164;hpb=bd62b3562ab80c5da331fe4d4eeb9bbf336e79c3;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/selenium/wdio-mediawiki/README.md b/tests/selenium/wdio-mediawiki/README.md index dc16e816d2..016e6e3b43 100644 --- a/tests/selenium/wdio-mediawiki/README.md +++ b/tests/selenium/wdio-mediawiki/README.md @@ -19,14 +19,15 @@ 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 [, string username [, string password [, string baseUrl ] ] ])` -* `delete(title, reason)` -* `createAccount(username, password)` -* `blockUser(username, expiry)` -* `unblockUser(username)` +* `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