Merge "Document how to run just one Selenium test"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 28 Nov 2017 13:54:00 +0000 (13:54 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 28 Nov 2017 13:54:00 +0000 (13:54 +0000)
tests/selenium/README.md

index a14cccb..c895a42 100644 (file)
@@ -30,6 +30,10 @@ Then in another terminal:
     cd tests/selenium
     ../../node_modules/.bin/wdio --spec specs/page.js
 
+To run only one test (name contains string 'preferences'):
+
+    ../../node_modules/.bin/wdio --spec specs/user.js --mochaOpts.grep preferences
+
 The runner reads the config file `wdio.conf.js` and runs the spec listed in
 `page.js`.