5 - [Chrome](https://www.google.com/chrome/)
6 - [ChromeDriver](https://sites.google.com/a/chromium.org/chromedriver/)
7 - [Node.js](https://nodejs.org/en/)
8 - [MediaWiki-Vagrant](https://www.mediawiki.org/wiki/MediaWiki-Vagrant)
10 Set up MediaWiki-Vagrant:
24 To run only one file (for example page.js), you first need to spawn the chromedriver:
26 chromedriver --url-base=/wd/hub --port=4444
28 Then in another terminal:
31 ../../node_modules/.bin/wdio --spec specs/page.js
33 To run only one test (name contains string 'preferences'):
35 ../../node_modules/.bin/wdio --spec specs/user.js --mochaOpts.grep preferences
37 The runner reads the config file `wdio.conf.js` and runs the spec listed in
40 The defaults in the configuration files aim are targetting a MediaWiki-Vagrant
41 installation on installation on http://127.0.0.1:8080 with a user Admin and
42 password 'vagrant'. Those settings can be overriden using environment
45 `MW_SERVER`: to be set to the value of your $wgServer
46 `MW_SCRIPT_PATH`: ditto with $wgScriptPath
47 `MEDIAWIKI_USER`: username of an account that can create users on the wiki.
48 `MEDIAWIKI_PASSWORD`: password for above user
52 MW_SERVER=http://example.org MW_SCRIPT_PATH=/dev/w npm run selenium
56 - [Selenium/Node.js](https://www.mediawiki.org/wiki/Selenium/Node.js)