Skip to content

Cypress Objectives

kimschles edited this page Oct 3, 2018 · 2 revisions

Cypress

By the end of this breakout, you will be able to:

  1. Install and configure cypress tests from scratch
  2. Write at least 3 cypress assertions
  3. Stretch: Test user input with cypress actions

Install and configure cypress tests from scratch

  • Create a new directory
  • Initializing a node project
    • npm init -y
  • Install Cypress
    • npm install --save-dev cypress
  • Create a cypress.json file
  • Configure cypress to your liking
    • suggestions: baseUrl, integrationFolder, and turned off video recording
  • If you want to see the test results in your terminal, change test script to
    • npx cypress open
    • npx cypress run
Clone this wiki locally