selenium: Replace ES5 one-var assignments with const/let per line
[lhc/web/wiklou.git] / tests / selenium / wdio-mediawiki / RunJobs.js
index 070ad56..daa7fbd 100644 (file)
@@ -1,10 +1,10 @@
-const MWBot = require( 'mwbot' ),
-       Page = require( './Page' ),
-       MAINPAGE_REQUESTS_MAX_RUNS = 10; // (arbitrary) safe-guard against endless execution
+const MWBot = require( 'mwbot' );
+const Page = require( './Page' );
+const MAINPAGE_REQUESTS_MAX_RUNS = 10; // (arbitrary) safe-guard against endless execution
 
 function getJobCount() {
-       let bot = new MWBot( {
-               apiUrl: `${browser.options.baseUrl}/api.php`
+       const bot = new MWBot( {
+               apiUrl: `${browser.config.baseUrl}/api.php`
        } );
        return bot.request( {
                action: 'query',
@@ -20,7 +20,7 @@ function log( message ) {
 }
 
 function runThroughMainPageRequests( runCount = 1 ) {
-       let page = new Page();
+       const page = new Page();
        log( `through requests to the main page (run ${runCount}).` );
 
        page.openTitle( '' );