πŸ§ͺ Cypress

🧭 Local vs Test Server

🏠 Local

  • Installing Cypress locally has several advantages:
    • Control over selectors & locators
Bash
$npm install cypress --save-dev
Click to copy

πŸ›©οΈ Test Server

  • Using Cypress to test a separate test server means creating a new test repository pretty much only to install Cypress, while targetting the test server as the test target.
Bash
$cy.visit('https://bythepixel.com')
Click to copy

πŸ§‘β€πŸ¦± SorryCypress Test Reporter

  • Useful to view when running headless cypress tests.
  • This requires docker and each command should be modified to name each test:
Bash
$npx cypress-cloud run --parallel --record --key recordkey --ci-build-id [test-title]
Click to copy