This repo contains capybara tests designed to be run using different web drivers.
Before you start the tests you need to:
- Start Google Analytics stub service
- Start GDS applications to be tested.
Clone fake google analytics and follow the installation instructions. This should be running on the same machine that the tests are being run on. If you're running the applications within a VM and the tests from the host then this should run in the host.
Make sure you have a recent copy of the databases for publisher and whitehall.
Start frontend
, whitehall
and their dependencies. Note that if you're testing against local changes to static
you will need to set the STATIC_DEV
environment variable for whitehall
.
STATIC_DEV=http://static.dev.gov.uk bowl frontend whitehall
bundle exec rake spec
To select the browser to use set a BROWSER
environment variable. Available options are firefox
, chrome
, IE
.
BROWSER=chrome bundle exec rake spec