X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fselenium%2Fwdio.conf.js;h=5eba0e0b9c5317114d4f56b5638fc7a7c7539946;hp=32a771242bac635c4155d10b3bbd28cc7318cc13;hb=dbad540cd37617879aff6f28ce9c016dd8049d4e;hpb=2480aae0c97d822e10b50619e7b48b25c45af073 diff --git a/tests/selenium/wdio.conf.js b/tests/selenium/wdio.conf.js index 32a771242b..5eba0e0b9c 100644 --- a/tests/selenium/wdio.conf.js +++ b/tests/selenium/wdio.conf.js @@ -1,9 +1,8 @@ -/* eslint-env node */ -/* eslint no-undef: "error" */ -/* eslint-disable no-console, comma-dangle */ 'use strict'; -const path = require( 'path' ); +const password = 'vagrant', + path = require( 'path' ), + username = 'Admin'; function relPath( foo ) { return path.resolve( __dirname, '../..', foo ); @@ -23,10 +22,10 @@ exports.config = { // Use if from tests with: // browser.options.username username: process.env.MEDIAWIKI_USER === undefined ? - 'Admin' : + username : process.env.MEDIAWIKI_USER, password: process.env.MEDIAWIKI_PASSWORD === undefined ? - 'vagrant' : + password : process.env.MEDIAWIKI_PASSWORD, // // ====== @@ -49,7 +48,7 @@ exports.config = { relPath( './tests/selenium/specs/**/*.js' ), relPath( './extensions/*/tests/selenium/specs/**/*.js' ), relPath( './extensions/VisualEditor/modules/ve-mw/tests/selenium/specs/**/*.js' ), - relPath( './skins/*/tests/selenium/specs/**/*.js' ), + relPath( './skins/*/tests/selenium/specs/**/*.js' ) ], // Patterns to exclude. exclude: [ @@ -231,7 +230,7 @@ exports.config = { // save screenshot browser.saveScreenshot( filePath ); console.log( '\n\tScreenshot location:', filePath, '\n' ); - }, + } // // Hook that gets executed after the suite has ended // afterSuite: function (suite) {