Coder Social home page Coder Social logo

cypressautomation's Introduction

CypressAutomation

How Can You Create a Cypress Project?

  1. Install home brew (if you prefer):

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

  1. Install node:

brew install node

  1. Download Visual Studio Code

  2. Create a new folder and Open it in Visual Studio Code

  3. Open the terminal

  4. Create package.json file:

npm -i init

  1. Install Cypress:

npm install cypress --save -dev

  1. 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.

Project Description

Setup and Run

  1. Open the terminal and change the current working directory to the location where you want to clone the repository.

  2. Clone this repo by running the following command:

git clone https://github.com/avsaryagmur/CypressAutomation.git

or

git clone [email protected]:avsaryagmur/CypressAutomation.git

  1. Install home brew (if you prefer):

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

  1. Install node:

brew install node

  1. Install project dependencies:

yarn install

  1. Run all tests interactively:

yarn cypress

The packages

npm install --save-dev cypress-file-upload

npm install --save-dev @4tw/cypress-drag-drop

Helpful Extension

I am using SelectorsHub for finding the ui elements.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.