- Install NodeJS on your machine
- Inside the Project directory, run: "npm init"
- During the init process, make sure set the 'test command' to: "cypress open"
- Inside the Project directory, run: "npm install --save-dev typescript"
- Inside the Project directory, run: "npm install cypress --save-dev"
- In 'package.json' file, replace the 'test' script for: "runner": "cypress open"
- Inside the project's terminal run: "npm run runner" to open Cypress for the first time
- Create an Empty Spec and name it "helloworld.cy.ts"
- Create a new file called: "tsconfig.json" inside your Cypress Folder with the following: https://docs.cypress.io/guides/tooling/typescript-support#Install-TypeScript
- Run again the helloworld test
- In 'package.json' file, add the following to the 'runner' script: "cypress open --e2e --browser chrome"
- Run: 'npm install -D cypress-xpath'
- In your framework support file [cypress/support/e2e.ts] add: require('cypress-xpath')
- Add "cypress-xpath" to your 'tsconfig.json file
- Run: 'npm i -D cypress-real-events'
- Add the following into your cypress/support/e2e.ts file
- ```import "cypress-real-events";```
- Include Ts declarations, add 'cypress-real-events' to the Types section of your tsconfig.json file
A step by step series of examples that tell you how to get a development env running.
Say what the step will be
Give the example
And repeat
until finished
End with an example of getting some data out of the system or using it for a little demo.
Add notes about how to use the system.