legzy27 / cypressTest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cypressTest

Setup cypress testing tool

  • npm init
  • npm install --save-dev cypress
  • npm install mocha

Update the project’s scripts by opening package.json and add this line to your scripts

  • "cypress:open": "cypress open"

Create cypress.json and add this line to the file

  • { "chromeWebSecurity": false }

Run test

  • cd into (cypressTest/cypress/integration/examples/)
  • Type npm run cypress:open and press in the terminal

About


Languages

Language:JavaScript 100.0%