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
 * 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 rake 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