title |
---|
Frontend E2E |
This project uses Cypress as the front-end E2E test framework.
-
To start the front-end project locally, please refer to develop web section.
-
Open Cypress test-runner. For the use of test-runner, please refer to test-runner Overview.
yarn cypress:open-dev
-
Write your test examples: please refer to the test examples in the
/web/cypress
directory, or see RWA for more examples.
To make it easy for users to develop front-end E2E cases, we use the remote manager-api by default. If you want to use the local manager-api, please read the following instructions:
-
Start the local manager-api service, please refer to develop manager-api section.
-
To start the front-end project locally, please refer to develop web section. NOTE: You need to change
yarn start
toyarn start:e2e
when you start. -
Open Cypress test-runner.
yarn cypress:open
Reference links:
-
Cypress API Documents: https://docs.cypress.io/api/api/table-of-contents.html
-
Cypress Best Practices: https://docs.cypress.io/guides/references/best-practices.html#Organizing-Tests-Logging-In-Controlling-State