selenium: Run wdio directly without grunt
[lhc/web/wiklou.git] / tests / selenium / README.md
index 2dbf271..274eb14 100644 (file)
@@ -5,9 +5,8 @@
 - [Chrome](https://www.google.com/chrome/)
 - [ChromeDriver](https://sites.google.com/a/chromium.org/chromedriver/)
 - [Node.js](https://nodejs.org/en/)
-- [MediaWiki-Vagrant](https://www.mediawiki.org/wiki/MediaWiki-Vagrant)
 
-Set up MediaWiki-Vagrant:
+If using MediaWiki-Vagrant:
 
     cd mediawiki/vagrant
     vagrant up
@@ -21,6 +20,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