fx-private-relay/e2e-tests
Rafee d39c3a71df E2E readme note 2023-11-27 11:41:49 -05: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 e2e fix needed after the playwright version bump 2023-10-16 23:26:15 -04: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 CI fix for relay e2e 2023-09-28 09:00:00 -04: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