Giter Site home page Giter Site logo

cypress-completecourse's Introduction

The Complete Cypress 10+ Course: From Zero to Expert!

Getting Started

Prerequisites

Install Node

  1. Install NodeJS on your machine
  2. Inside the Project directory, run: "npm init"
  3. During the init process, make sure set the 'test command' to: "cypress open"

Install TypeScript

  1. Inside the Project directory, run: "npm install --save-dev typescript"

Install Cypress

  1. Inside the Project directory, run: "npm install cypress --save-dev"
  2. In 'package.json' file, replace the 'test' script for: "runner": "cypress open"
  3. Inside the project's terminal run: "npm run runner" to open Cypress for the first time
  4. Create an Empty Spec and name it "helloworld.cy.ts"
  5. Create a new file called: "tsconfig.json" inside your Cypress Folder with the following: https://docs.cypress.io/guides/tooling/typescript-support#Install-TypeScript
  6. Run again the helloworld test
  7. In 'package.json' file, add the following to the 'runner' script: "cypress open --e2e --browser chrome"

Install 'xPath Dependency' Package

  1. Run: 'npm install -D cypress-xpath'
  2. In your framework support file [cypress/support/e2e.ts] add: require('cypress-xpath')
  3. Add "cypress-xpath" to your 'tsconfig.json file

Install 'Cypress Real Events' Package

  1. Run: 'npm i -D cypress-real-events'
  2. Add the following into your cypress/support/e2e.ts file
  3. ```import "cypress-real-events";```
  4. Include Ts declarations, add 'cypress-real-events' to the Types section of your tsconfig.json file

Installing

A step by step series of examples that tell you how to get a development env running.

Say what the step will be

Give the example

And repeat

until finished

End with an example of getting some data out of the system or using it for a little demo.

Usage

Add notes about how to use the system.

cypress-completecourse's People

Contributors

alejandrosejas avatar

Watchers

 avatar

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.