Cypress automation framework skeleton with Typescript.
CYPRESS-SAMPLE
├───cypress
│ ├───downloads
│ ├───fixtures
│ ├───e2e
│ ├───pages
│ ├───plugins
│ ├───screenshots
│ ├───support
│ └───videos
└───node_modules
- Install Microsoft Visual Studio Code IDE. Ignore this if already installed.
- Install Nodejs on your system. Ignore this if already installed.
- Install Git on your system. Ignore this if already installed.
git clone https://github.com/VikashChauhan51/cypress-sample.git
or downloadmaster
branch zip and extract code.- Open project folder with VSCode.
- Run
npm install
command to restore all packages. - Run
npm run cypress:test
command to run test.
- Install Microsoft Visual Studio Code IDE. Ignore this if already installed.
- Install Nodejs on your system. Ignore this if already installed.
- Install Git on your system. Ignore this if already installed.
- Open project folder with VSCode.
- Run
npm init -y
command to initilized project. - Run
npm install cypress --save-dev
command to install cypress. - Run
npm install typescript --save-dev
command to install typescript. - Run
npx tsc --init --types cypress --lib dom,es6
command to configure typescript. - Run
npx cypress open
command to run test.