In Cypress, dashboard services are provided when we run the program from the terminal/CI. In the dashboard service, the video, screenshots, and the report of the executed tests can be accessed or viewed in a single window. Let us understand how to set up the cypress dashboard services.
- Open the cypress test runner and select the Runs option. The below UI will appear and click Log In to Dashboard.
- Choose the mode to sign in to the dashboard according to your ease.
- After successfully signed in, the below UI will appear in the browser.
- Go to the Cypress test runner and select the Runs option. In that option, select Connect to the dashboard.
- To save the recorded video and the screenshots, we have to set up a project. The name of the project automatically gets auto-filled depending on the folder we created to create the test files in the VSCode.
- We can set the mode to public or private.
- In public mode, all people can view your test results
- In the private mode, only the people we have invited will be able to see the test results.
- After setting the project, the below UI will appear which comprises the project ID and project Key. A unique projectID gets generated. The project Key is important because only with the help of the key we can interact with the dashboard to view our results.
- In the cypress.json file the projectID is automatically gets updated at once we have successfully set the project in the dashboard.
- Give the name and the main theme of the project accordingly as in the below image.
- The below UI will appear as the last step to set up the cypress dashboard services.