fx-private-relay/e2e-tests
John Whitlock 21f43a5f77
Add newline at end of file
2024-01-24 17:03:32 -06:00
..
e2eTestUtils replacing with single quotes, setting defaults to use pre-existing env_urls 2023-10-12 09:14:17 -04:00
fixtures add snapshots for stage and prod, as well as linux for a more flexibility in runs 2022-08-04 00:30:12 -04:00
pages Use a regex for the return from premium signup 2024-01-24 17:01:45 -06:00
specs Update e2e-tests/specs/relay-premium-upgrade.spec.ts 2023-10-17 04:18:58 -04:00
README.md E2E readme note 2023-11-27 11:41:49 -05:00
global-setup.ts Add newline at end of file 2024-01-24 17:03:32 -06:00

README.md

Relay e2e Test Suite


How to run

Note: Steps 1 and 2 can be skipped if you are not updating screenshots. By default, screenshots use darwin but linux is what is used in our CI/CD.

1. Install Docker

https://docs.docker.com/get-docker/

2. Build Docker container using official image from playwright

docker run -v $PWD:/tests -w /tests --rm --ipc=host -it mcr.microsoft.com/playwright:v1.24.0-focal /bin/bash

3. Install Node Dependencies

npm install

4. Install Playwright test dependencies

npx playwright install

5. Run Tests

create/update a .env file with the following:

E2E_TEST_ACCOUNT_PASSWORD=<arbitrary password>

6. Run Tests

npm run test:e2e

Relay e2e Tests