Sample project to demonstrate a cypress
testing commands.
It is required to have Node.js and npm installed to run this project.
I used versions
v16.13.0
and8.1.0
of Node.js and npm, respectively. I suggest you use the same or later versions.
Run npm install
(or npm i
for the short version) to install the dev dependencies.
Run
npm run test
(ornpm t
for the short version) to run the test in headless mode. Runnpm run test-mobile
(ornpm t
for the short version) to run the test in headless mode.
Run
npm run cy:open-mobile
to open Cypress in interactive mode (mobile viewport). Runnpm run cy:open
to open Cypress in interactive mode (desktop viewport).
Note: After running the dependencies, copy these lines in the cypress.json file { "pluginsFile": false, "viewportHeight": 880, "viewportWidth": 1280 }