wiki.techinc.nl/tests/selenium/pageobjects
Timo Tijhof 22d149c3f7 selenium: Fix more inefficient MWBot use and simplify wdio-mediawiki Api
This does the same for the other specs, as previously done to the
page.js spec in 058d5b7cd8.

* rollkback: From 6 api logins to 4 api logins.
  Before (2x3): admin for edit, admin for createaccount, vandal for edit.
  After (2x2): admin for edit + createaccount, vandal for edit.

* recentchanges spec: No difference, but updated pattern for consistency
  so that if it is extended in the future, it will be natural to re-use
  the bot object instead of creating a new one.

* watchlist spec: From 3 api logins to 1 api login.
  Before: admin for createaccount, admin for edit, admin for edit.
  After: admin (re-used)

* user spec: From 2 to 1 api login.

Also:

* Remove the now-unused Api.edit() and Api.delete() anti-pattern
  methods, as these are nothing but one-line shortcuts to the
  already one-line invocation of bot.edit() and bot.delete(),
  except that they bypassed the current bot object, causing
  inefficient repeat logins in way that was non-obvious.
  Migration is simple and won't be required until other repos
  upgrade to the next wdio-mediawiki version (not yet released).

* Make 'bot' a mandatory parameter for the createAccount, block,
  and unblock convenience wrapper methods.

* Move the vandalizePage() method from HistoryPage to rollback spec,
  as it had no connection with that page object or the action=history
  interface, and document why it can't (yet) re-use its bot object.

Bug: T234002
Change-Id: Id6e995916566f7dd7b618892295198b897fbee2e
2019-10-04 18:16:28 +01:00
..
createaccount.page.js selenium: Remove deprecated legacy methods 2019-09-29 02:31:51 +00:00
delete.page.js selenium: Remove deprecated legacy methods 2019-09-29 02:31:51 +00:00
edit.page.js Selenium: Hide VE welcome and beta dialogs 2019-09-30 21:57:23 +02:00
history.page.js selenium: Fix more inefficient MWBot use and simplify wdio-mediawiki Api 2019-10-04 18:16:28 +01:00
preferences.page.js selenium: Upgrade from webdriver v4 to v5 2019-09-29 02:59:44 +01:00
recentchanges.page.js selenium: Upgrade from webdriver v4 to v5 2019-09-29 02:59:44 +01:00
restore.page.js selenium: Upgrade from webdriver v4 to v5 2019-09-29 02:59:44 +01:00
undo.page.js selenium: Upgrade from webdriver v4 to v5 2019-09-29 02:59:44 +01:00
watchable.page.js selenium: Upgrade from webdriver v4 to v5 2019-09-29 02:59:44 +01:00
watchlist.page.js selenium: Upgrade from webdriver v4 to v5 2019-09-29 02:59:44 +01:00