selenium: invoke jobs to enforce eventual consistency
authorPablo Grass <pablo.grass@wikimedia.de>
Tue, 11 Sep 2018 14:57:48 +0000 (16:57 +0200)
committerPablo Grass <pablo.grass@wikimedia.de>
Thu, 20 Sep 2018 09:13:38 +0000 (11:13 +0200)
commite908d347ef249cb209c7405fd0be246eb643b5af
treed9a73002af794faa971ecd9d7debfbeefb8ec613
parent388524219c5d86a6869146d2a40abaa811cff55f
selenium: invoke jobs to enforce eventual consistency

Many tests use the API during their setup phase, which does not
participate in clearing the job queue, but constantly adds new items.
Consequently the job count keeps mounting. In order to be able to assert
the state of the application once all jobs are processed we need a way
to invoke them.
This is a minimalistic alternative to Idd4924e16925cbf0cb9e42645670c3fd76b72353

Bug: T199446
Change-Id: Ifc49bc5c06eef71da8aff1b1837c32debc2c45dd
tests/selenium/specs/specialrecentchanges.js
tests/selenium/wdio-mediawiki/RunJobs.js [new file with mode: 0644]