X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=blobdiff_plain;f=tests%2Fselenium%2FREADME.md;h=b15d4073dc640b66ed265c6054478852f27e7cd3;hb=5cb8e748c39725b1ca6e00284b84818490ba2385;hp=16283772a01509192c4bf13beaefeb60b5c4dab7;hpb=d3538125dfe64afa94ef68aa000549a03eb49977;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/selenium/README.md b/tests/selenium/README.md index 16283772a0..b15d4073dc 100644 --- a/tests/selenium/README.md +++ b/tests/selenium/README.md @@ -21,6 +21,11 @@ Set up MediaWiki-Vagrant: npm run selenium +By default, Chrome will run in headless mode. If you want to see Chrome, set DISPLAY +environment variable to any value: + + DISPLAY=:1 npm run selenium + To run only one file (for example page.js), you first need to spawn the chromedriver: chromedriver --url-base=wd/hub --port=4444 @@ -37,14 +42,14 @@ To run only one test (name contains string 'preferences'): The runner reads the config file `wdio.conf.js` and runs the spec listed in `page.js`. -The defaults in the configuration files aim are targetting a MediaWiki-Vagrant -installation on installation on http://127.0.0.1:8080 with a user Admin and -password 'vagrant'. Those settings can be overriden using environment +The defaults in the configuration files aim are targeting a MediaWiki-Vagrant +installation on http://127.0.0.1:8080 with a user Admin and +password 'vagrant'. Those settings can be overridden using environment variables: `MW_SERVER`: to be set to the value of your $wgServer -`MW_SCRIPT_PATH`: ditto with $wgScriptPath -`MEDIAWIKI_USER`: username of an account that can create users on the wiki. +`MW_SCRIPT_PATH`: ditto with $wgScriptPath +`MEDIAWIKI_USER`: username of an account that can create users on the wiki `MEDIAWIKI_PASSWORD`: password for above user Example: