What is UI Coverage?
mainUI Coverage is a feature in Cypress Cloud that provides a visual map of which interactive elements (buttons, inputs, links, and controls) your Cypress tests exercise and which they miss.
Unlike code coverage, which tracks which lines of source code were executed, UI Coverage measures whether the actual user-facing interactive surface of your application is being tested. It works by analyzing the DOM snapshots captured by Test Replay during your recorded runs.
Key benefits include:
- Visualizing untested surface: View a single coverage score and per-view scores to rank pages by risk.
- Identifying exact gaps: Locate specific untested elements via inspectable DOM snapshots.
- Discovering missing flows: Find untested links that lead to pages your suite never visits.
- Automating gap closure: Use Test Generation or the Cypress Cloud MCP to create tests for missing coverage.
- CI/CD Integration: Use the Results API to fail CI or block pull requests when coverage drops.