Cypress
Fast, easy end-to-end testing for web applications. Write, run, and debug tests with time-travel debugging and real browsers.
49 commands
Browse by Topic
Getting Started
Quick setup and installation
Running
Execute tests
Interactive
Test Runner
Configuration
Cypress config
Component
Component testing
CI Integration
CI/CD setup
Fixtures
Test data
Custom Commands
Extend Cypress
Environment
Env variables
Cypress Cloud
Dashboard & CI
Debugging
Debug tests
Install Cypress
Install Cypress as a dev dependency in your project
Open Cypress UI
Launch the Cypress Test Runner UI
Run tests headlessly
Execute Cypress tests in headless mode
Run all tests
Run all tests headlessly.
Run specific spec
Run specific test file.
Run with browser
Run tests in Chrome.
Run headed
Run with browser visible.
Open interactive
Open Cypress Test Runner.
Run with env
Run with environment variable.
Open Test Runner
Open interactive Test Runner.
Open E2E testing
Open for E2E tests only.
Open with browser
Open in specific browser.
Open with project
Open specific project path.
Open with config
Open with custom config.
Set baseUrl
Configure base URL.
Set viewport
Set viewport size.
Set timeout
Configure command timeout.
Open component testing
Open component test runner.
Run component tests
Run component tests headlessly.
Mount React component
Mount component for testing.
Run with recording
Run and record to Cypress Cloud.
Parallel runs
Run tests in parallel.
CI build ID
Group runs with build ID.
Install browsers
Install Cypress browsers.
Load fixture
Load fixture data from file.
Fixture with alias
Create fixture alias for reuse.
Use aliased fixture
Access aliased fixture data.
Intercept with fixture
Mock API with fixture data.
Import fixture directly
ES6 import fixture file.
Add custom command
Create reusable command.
Use custom command
Call custom login command.
Overwrite command
Extend existing command.
Child command
Create chainable command.
TypeScript types
Add TypeScript definitions.
CLI env variable
Pass env via CLI.
Access env in test
Read env variable in test.
Multiple env vars
Pass multiple env variables.
Env from file
Set env via config file.
All env vars
Log all environment vars.
Record to Cloud
Record test results to Cloud.
Parallel execution
Run tests in parallel on CI.
Tag test run
Add tags to test recording.
Specify CI build
Link to CI build ID.
Auto-cancel failed
Cancel run after N failures.
Debug command
Pause and open DevTools.
Pause execution
Pause test and inspect state.
Log message
Add message to command log.
Print subject
Log element to console.
Screenshots on failure
Auto screenshot on failure.
Discussion
Loading comments...