From: Pablo Grass Date: Thu, 18 Jul 2019 14:08:54 +0000 (+0200) Subject: wdio-mediawiki: Release 0.4.0 X-Git-Tag: 1.34.0-rc.0~946^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/?a=commitdiff_plain;h=d0b77d72da5493b83be284f45debbeaef0f757e3;p=lhc%2Fweb%2Fwiklou.git wdio-mediawiki: Release 0.4.0 a1e51bf94325130fa3d54d65c071d3ab57a4ab79 unpublished 3 RunJobs methods They do not appear to be used according to wmf codesearch and, given their limited usefulness, are unlikely to be used elsewhere. Change-Id: Iaefe6f71320c2c3ab86468bf827b6e8d2e80095d --- diff --git a/tests/selenium/wdio-mediawiki/CHANGELOG.md b/tests/selenium/wdio-mediawiki/CHANGELOG.md index 521eee651d..ed6c78a722 100644 --- a/tests/selenium/wdio-mediawiki/CHANGELOG.md +++ b/tests/selenium/wdio-mediawiki/CHANGELOG.md @@ -1,3 +1,9 @@ +## 0.4.0 / 2019-07-18 + +* Util: Added a `waitForModuleState()` method. +* Api: Added optional `username`, `password` and `baseUrl` parameters to `edit()` method. +* RunJobs: Unpublished `getJobCount()`, `log()`, `runThroughMainPageRequests()` methods. + ## 0.3.0 / 2019-01-25 * RunJobs: Added initial version. diff --git a/tests/selenium/wdio-mediawiki/README.md b/tests/selenium/wdio-mediawiki/README.md index a52d5943fe..dc16e816d2 100644 --- a/tests/selenium/wdio-mediawiki/README.md +++ b/tests/selenium/wdio-mediawiki/README.md @@ -22,7 +22,7 @@ Utilities to interact with the MediaWiki API. Uses the [mwbot](https://github.co Actions are performed logged-in using `browser.options.username` and `browser.options.password`, which typically come from `MEDIAWIKI_USER` and `MEDIAWIKI_PASSWORD` environment variables. -* `edit(title, content)` +* `edit(title, content [, string username [, string password [, string baseUrl ] ] ])` * `delete(title, reason)` * `createAccount(username, password)` * `blockUser(username, expiry)` @@ -33,6 +33,13 @@ which typically come from `MEDIAWIKI_USER` and `MEDIAWIKI_PASSWORD` environment 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 This package follows [Semantic Versioning guidelines](https://semver.org/) for its releases. In diff --git a/tests/selenium/wdio-mediawiki/package.json b/tests/selenium/wdio-mediawiki/package.json index 4babd08818..423487f4d2 100644 --- a/tests/selenium/wdio-mediawiki/package.json +++ b/tests/selenium/wdio-mediawiki/package.json @@ -1,6 +1,6 @@ { "name": "wdio-mediawiki", - "version": "0.3.0", + "version": "0.4.0", "description": "WebdriverIO plugin for testing a MediaWiki site.", "homepage": "https://gerrit.wikimedia.org/g/mediawiki/core/+/master/tests/selenium/wdio-mediawiki/", "license": "MIT",