This repo contains an example React App, TodoMVC, with the goal of learning how to use Cypress.io
This repo is heavily inspired in the cypress-example-TodoMVC repo from Cypress.io
The steps below will allow to start this workshop
After forking this project in Github
, run these commands:
## cd into the repo
cd cypress-workshop
## install the node_modules
npm install
## start the local webserver with the API
npm start
The npm start
script will spawn:
- a web server on port
8080
which hosts the TodoMVC app. - An API on port
3030
wich serves the data for the webapp.
You can verify this by opening your browser and navigating to: Web
API
You should see the TodoMVC app up and running. We are now ready to run Cypress tests.
For exercises check here
For extended support in vscode for the cypress syntax add the following header
// type definitions for Cypress object "cy"
/// <reference types="cypress" />