Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 763 Bytes

README.md

File metadata and controls

38 lines (26 loc) · 763 Bytes

GOV.UK End-to-End Tests

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

Running the tests

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