Quality Assurance/How to run browser tests


 * clone the repository: git clone ssh://username@gerrit.wikimedia.org:29418/qa/browsertests
 * follow the instructions in README.md to configure Ruby for your system
 * specify the target wiki that the browser will visit with export MEDIAWIKI_URL=URL/to/target/wiki, e.g. http://127.0.0.1:8080/wiki/ for MediaWiki-Vagrant.
 * for tests that login,
 * create a user named Selenium_user on the target wiki
 * specify the Selenium_user password with export MEDIAWIKI_PASSWORD=Selenium_user_password (for some older tests you may need to create a local file config/secret.yml containing mediawiki_password: 'Selenium_user_password'
 * in the browsertests/ directory, type bundle exec cucumber to run all tests (tests that login will fail until you supply the proper passwords)
 * to run a single test, in the browsertests/ directory enter bundle exec cucumber features/foo.feature, where foo.feature" is the name of the feature test to be run.
 * the browser by default is Firefox. You can change the  in /features/support/env.rb
 * By default, the browser will close itself at the end of every scenario. If you want the browser to stay open, set the environment variable  to  :