- Install home brew (if you prefer):
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Install node:
brew install node
-
Download Visual Studio Code
-
Create a new folder and Open it in Visual Studio Code
-
Open the terminal
-
Create package.json file:
npm -i init
- Install Cypress:
npm install cypress --save -dev
- Open Cypress:
npx cypress open
or node_modules/.bin/cypress open
- Click E2E Testing selection when the Welcome to Cypress! page opened.
- Click Continue in Configuration files page.
- Click Start E2E Testing in Chrome button in Choose a browser page.
- Click Scaffold example specs selection in Create your first spec page.
- Click Okay, I got it! button.
-
Open the terminal and change the current working directory to the location where you want to clone the repository.
-
Clone this repo by running the following command:
git clone https://github.com/avsaryagmur/CypressAutomation.git
or
git clone [email protected]:avsaryagmur/CypressAutomation.git
- Install home brew (if you prefer):
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Install node:
brew install node
- Install project dependencies:
yarn install
- Run all tests interactively:
yarn cypress
npm install --save-dev cypress-file-upload
npm install --save-dev @4tw/cypress-drag-drop
I am using SelectorsHub for finding the ui elements.