Skip to content

Commit

Permalink
Update e2e test instructions (#2017)
Browse files Browse the repository at this point in the history
This PR removes the reference to the no longer existing docker infrastructure
readme and replaces it with up-to-date steps to setup the e2e environment.
  • Loading branch information
Frederik Rothenberger authored Nov 7, 2023
1 parent 9e24648 commit c167f5e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion HACKING.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,15 @@ into the following issues:

#### Test suites

We have a set of Selenium tests that run through the various flows. To set up a local deployment follow the steps in [docker-test-env/README.md](docker-test-env/README.md).
We have a set of Selenium tests that run through the various flows. To set up a local deployment follow these steps:
1. Start a local replica with `dfx start`
2. Deploy the [`Test` flavour](https://github.com/dfinity/internet-identity/tree/main#flavors) of II by running: `II_FETCH_ROOT_KEY=1 II_DUMMY_CAPTCHA=1 dfx deploy internet_identity`
3. Deploy the test app by running `dfx deploy` from the `demos/test-app` directory
4. Start the vite dev server with TLS enabled: `TLS_DEV_SERVER=1 npm run dev`

To watch the tests run in the browser remove the `headless` option from `src/frontend/src/test-e2e/util.ts`.

```bash
The tests can be executed by running:

```bash
Expand Down

0 comments on commit c167f5e

Please sign in to comment.