Skip to content

This repository contains the end-to-end (E2E) test suite for the GOV.UK platform.

License

Notifications You must be signed in to change notification settings

alphagov/govuk-e2e-tests

Repository files navigation

GOV.UK End-to-End Tests

This repository contains the end-to-end (E2E) test suite for GOV.UK, built using the Playwright framework.

Deployment & Operations

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.

Running the tests locally

Setup

Clone and navigate to the root folder.

Install the dependencies:

yarn install
yarn playwright install --with-deps chromium

Set environment variables

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.

Run

yarn playwright test

About

This repository contains the end-to-end (E2E) test suite for the GOV.UK platform.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages