A · Setup · beginner · Week 1 · Chapter 2 of 12
Install, project layout, first green
Know where config, specs, and support files live. Get one green test before you decorate the suite. Understand the Cypress App and command log.
Path progress10%
Step 1 of 4
Scaffold project
npm init, install cypress, open Cypress App. Default e2e structure appears.
Example
npm init -y
npm install cypress --save-dev
npx cypress openDo this now
Run npm install cypress --save-dev && npx cypress open. Run the included example spec.
Was this step clear?
Chapter learning outcomes
- cypress.config
- e2e folder
- Runner time-travel
- cy.visit / get / type / click / should
Clear these before you leave
Side quest
Login happy path
Spec: fill credentials → submit → assert URL contains inventory and cart icon visible.