You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- [Step 2 : delete the user pool](#step-2--delete-the-user-pool)
31
32
32
33
This document explains how to use the broker:
33
34
@@ -325,6 +326,24 @@ amplify push --force
325
326
326
327
_To verify if the change have been propagated you can open one of the AWS Lambda within the AWS console and look at the value of the environment variable `HOSTING_DOMAIN`_
327
328
329
+
### Step 4: E2E Test (Optional)
330
+
331
+
This project is setup with End-to-end Testing with [Cypress](https://docs.aws.amazon.com/amplify/latest/userguide/running-tests.html).
332
+
333
+
If you use Amplify CICD Integration, you must either setup necessary step for testing or disable testing. You may only run test on specific branch.
334
+
335
+
__Option 1: Setup Testing__
336
+
337
+
1. Visit Cognito Console.
338
+
2. Create a test user.
339
+
3. Login with the test user and set the password.
340
+
4. Add the test user email and password as `CYPRESS_EMAIL` and `CYPRESS_PASSWORD` in Amplify Environment Variable.
341
+
5. When test locally, run `npx cypress run --env EMAIL=<email>,PASSWORD=<password>`
342
+
343
+
__Option 2: Disable Testing__
344
+
345
+
1. Set Amplify Environment Variable `USER_DISABLE_TESTS` to `true` on branch. Visit [Amplify Documentation](https://docs.aws.amazon.com/amplify/latest/userguide/running-tests.html#disabling-tests) for more detail.
0 commit comments