Getting Started with Cypress

Pragadeeswaran Gnanasekaran
2 min readJul 9, 2019

--

Pre-requisites

  1. Install Node

Ready to Play with Cypress

  1. Create a folder and do npm init
  2. Install Cypress using npm — npm i cypress — save-dev
Installing Cypress

3. Congrats !!! Done with your initial setup.

I am quite hungry so lets automate the Uber eats Order some food using Cypress.

  1. Visit www.ubereats.com
  2. Search for Ascendas IT Park
  3. Select a hotel
  4. Choose food
  5. +/ — Quantity and do Add 2 Cart
  6. Go to node_modules/.bin/cypress open

After the above command, you will get a folder structure created as above one. You will have fixtures, integration example specs, plugins, support and cypress.json file.

Every test will have spec in the name.

Double click on any spec file to run. Happy testing :) In Next Blog we can deep dive into how to write test in cypress.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response