Use npm install
command to install cypress dependencies.
For opening Cypress use npx cypress open
.
Then select e2e Testing
when Cypress opens.
Choose a browser (Chrome by default).
Next you will be able to see all the available tests in the cypress/e2e
package.
Create new package in cypress/e2e
folder.
Add a new file like test.cy.js
.
All Cypress tests must have a file extension such as cy.js
.
In the 1-getting-started
folder you can find an example Cypress test to understand the structure.
In the 2-advanced-examples
folder you can find some advanced examples that you will also use in the practice.