This repository contains the end-to-end (E2E) test suite for GOV.UK, built using the Playwright framework.
The test suite is automatically deployed to GOV.UK's Kubernetes infrastructure on merge, just like any of our continuously deployed applications. Test traffic therefore originates from one of our three static NAT gateway IPs (there are no other identifiers, e.g. custom UA string, for test traffic at present).
The test suite is run regularly on weekdays only, as per the cron schedule. Failures are not currently reported anywhere. Results can be seen in Argo.
Clone and navigate to the root folder.
Install the dependencies:
yarn install
yarn playwright install --with-deps chromium
Create a .env
file in the root of the project with the following content:
cat <<EOF > .env
PUBLISHING_DOMAIN=integration.publishing.service.gov.uk
PUBLIC_DOMAIN=www.integration.publishing.service.gov.uk
DGU_DOMAIN=www.integration.data.gov.uk
SIGNON_EMAIL=<email>
SIGNON_PASSWORD=<password>
EOF
Replace placeholders with appropriate values.
yarn playwright test