From 3a153a40bd6b13a2da20a4dc6042c160fe9911f0 Mon Sep 17 00:00:00 2001 From: vincanger <70215737+vincanger@users.noreply.github.com> Date: Fri, 21 Jun 2024 16:49:17 +0200 Subject: [PATCH] add instructions for local e2e env vars (#184) * add instructions for e2e env vars * add env var to session * Update README.md --- template/e2e-tests/README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/template/e2e-tests/README.md b/template/e2e-tests/README.md index 4bfe8ca..3df4eb0 100644 --- a/template/e2e-tests/README.md +++ b/template/e2e-tests/README.md @@ -18,11 +18,13 @@ Start your Wasp DB and leave it running: cd ../app && wasp db start ``` -Open another terminal and start the Wasp app: +Open another terminal and start the Wasp app with the environment variable set to skip email verification in development mode: ```shell -cd app && wasp start +cd app && SKIP_EMAIL_VERIFICATION_IN_DEV=true wasp start ``` +NOTE: When using the email auth method a verification link is sent when the user registers, or logged to the console if you're using the default Dummy provider. You must click this link to complete registration. Setting SKIP_EMAIL_VERIFICATION_IN_DEV to "true" skips this verification step, allowing you to automatically log in. This step must be skipped when running tests, otherwise the tests will hang and fail as the verification link is never clicked! + In another terminal, run the local e2e tests: ```shell cd e2e-tests && npm run local:e2e:start