<div dir="ltr"><div><br></div><div>Hello QAers, </div><div><br></div><div>I've been wanting to make this happen for a while, and now a flaky test in the MobileFrontend repo has supplied the opportunity:  <a href="https://gerrit.wikimedia.org/r/#/c/123679/">https://gerrit.wikimedia.org/r/#/c/123679/</a></div>
<div><br></div><div>We have (at least) two Scenarios in (at least) two different builds that all try to move the Barack_Obama page on and off the watchlist for Selenium_user.  This sometimes causes false failures and flaky results when the tests interfere with each other.  The gerrit patch above creates a new page at run time for each Scenario that manipulates the watchlist, so the test won't be flaky any more.  </div>
<div><br></div><div>Some time ago Juliusz and Željko created a nice[1] front[2] do this with the API but until now I had not had a good reason to call the API from within a Cucumber step.  </div><div><br></div><div>If we get this merged successfully, the next step would be to move the steps implementation to the mediawiki_selenium Ruby gem so that all the repos could use it in the same way, not just MobileFrontend. </div>
<div><br></div><div>[1] <a href="http://rubygems.org/gems/mediawiki_api">http://rubygems.org/gems/mediawiki_api</a><br></div><div>[2] <a href="https://github.com/wikimedia/mediawiki-ruby-api">https://github.com/wikimedia/mediawiki-ruby-api</a><br>
</div><div><br></div></div>