π§ͺ 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