From c167f5e3c967fe88ddf36e2200832e726b132137 Mon Sep 17 00:00:00 2001 From: Frederik Rothenberger Date: Tue, 7 Nov 2023 16:06:01 +0100 Subject: [PATCH] Update e2e test instructions (#2017) 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. --- HACKING.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/HACKING.md b/HACKING.md index 2f3b95a2b5..2b259ab3be 100644 --- a/HACKING.md +++ b/HACKING.md @@ -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