Cypress is a next generation front end testing tool built for the modern web. This is a sample project which you can use to start your E2E testing with Cypress.
- Clone the project
npm i
- Install all the dependencies- Run
npm test
to execute the tests in Test Runner | Runnpx cypress run
to execute the tests in CLI - To create HTML reports execute first
npm run test:cli
and thennpm run create:html:report
- How to Install Cypress
- Understanding Cypress Folder Structure
- How to execute Cypress Tests using Test Runner and CLI
- Writing your First Test in Cypress
- How to use Fixtures in Cypress Tests
- How to use readFile() and writeFile() in Cypress
- How to interact with multiple elements using each()
- Conditional Testing (If Else) in Cypress
- How to upload a file in Cypress
- How to download a file in Cypress
- API Testing in Cypress
- How to chain Multiple APIs in Cypress
- Mock API Response in Cypress using cy.server() and cy.route()
- How to handle JS Alert, Confirm and Prompt in Cypress
- How to use Skip and Only in Cypress
- How to execute Cypress Tests in order
- How to handle Shadow DOM in Cypress
- How to retry tests X number of times in Cypress
- How to handle Iframes in Cypress
- How to generate HTML reports in Cypress
- How to Add Tags like Smoke,E2E to Cypress Tests
- Cypress Page Object with Locator Functions and Custom Commands
- Cypress Dashboard
- How to visually generate tests with no coding in Cypress Studio
- How to mock an API using cy.intercept()
- How to integrate cypress with cucumber
- When you're running your tests from the Test Runner, make sure that none of the tests has
only
, as this basically tells cypress to run that particular test and skip all others.