5 - [Chrome](https://www.google.com/chrome/)
6 - [ChromeDriver](https://sites.google.com/a/chromium.org/chromedriver/)
7 - [Node.js](https://nodejs.org/en/)
9 If using MediaWiki-Vagrant:
23 By default, Chrome will run in headless mode. If you want to see Chrome, set DISPLAY
24 environment variable to any value:
26 DISPLAY=1 npm run selenium
28 To run only one test (for example specs/page.js), you first need to start Chromedriver:
30 chromedriver --url-base=wd/hub --port=4444
32 Then, in another terminal:
34 npm run selenium-test -- --spec tests/selenium/specs/page.js
36 You can also filter specific cases, for ones that contain the string 'preferences':
38 npm run selenium-test -- tests/selenium/specs/user.js --mochaOpts.grep preferences
40 The runner reads the configuration from `wdio.conf.js`. The defaults target
41 a MediaWiki-Vagrant installation on `http://127.0.0.1:8080` with a user "Admin"
42 and password "vagrant". Those settings can be overridden 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)