Smoke tests for GOV.UK
A suite of Cucumber tests that probe GOV.UK frontend and backend publishing functionality. The tests use Selenium to manipulate a headless Chrome browser.
The tests are run via a Jenkins job in each environment (e.g. Integration).
The job is triggered in multiple ways:
Each test should check that a critical area of GOV.UK is working as expected. Read the guidance on what tests belong here and how to write new ones.
You can use the GOV.UK Docker environment to run the application and its tests with all the necessary dependencies. Follow the usage instructions to get started.
Use GOV.UK Docker to run any commands that follow.
Note: you will need to be connected to the VPN to test against Integration or Staging.
The tests require additional configuration to run successfully on a local machine.
bundle exec cucumber
You can use the following environment variables to configure the tests:
You can try using your own Signon account, but this won’t work if you have Multi Factor Auth enabled. Another option is to use the credentials for the Smokey test user in govuk-secrets/puppet_aws:
bundle exec rake 'eyaml:decrypt_value[integration,smokey_signon_email]'
bundle exec rake 'eyaml:decrypt_value[integration,smokey_signon_password]'
bundle exec rake 'eyaml:decrypt_value[integration,smokey_rate_limit_token]'