Back to Repositories

Carbon Testing: Integration Tests with Cypress and Jest

The Carbon application employs a comprehensive testing strategy centered on integration testing using Cypress and Jest frameworks. The test suite focuses on critical aspects including security validation, visual regression testing, and core editor functionality verification. Cypress tests cover essential features like XSS prevention, Gist integration, keyboard shortcuts, and embedded editor capabilities, ensuring robust end-to-end validation. Qodo Tests Hub provides developers with detailed insights into Carbon's testing patterns, offering an organized view of integration test implementations across security, UI components, and feature validation. Through the platform, developers can explore real-world examples of Cypress test scenarios, understand visual regression testing approaches, and learn best practices for testing modern web applications. The repository serves as a practical reference for implementing effective integration testing strategies.

Path Test Type Language Description
cypress/integration/basic.spec.js
integration
javascript This Cypress integration test verifies core functionality of the Carbon editor including text encoding, keyboard shortcuts, and export capabilities.
cypress/integration/localStorage.spec.js
integration
javascript This Cypress integration test verifies localStorage persistence and theme selection functionality in the Carbon application.
cypress/integration/background-color.spec.js
integration
javascript This Cypress integration test verifies background color selection, persistence, and URL parameter handling in the Carbon application.
cypress/integration/embed.spec.js
integration
javascript This Cypress integration test verifies the proper rendering and visibility constraints of the embedded Carbon editor interface.
cypress/integration/gist.spec.js
integration
javascript This Cypress integration test verifies Gist content loading and URL handling in the Carbon application.
cypress/integration/security.spec.js
integration
javascript This Cypress integration test verifies security measures including XSS prevention, security headers, and URL redirections in the Carbon application.
cypress/integration/visual-testing.spec.js
integration
javascript This Cypress integration test verifies visual regression across Carbon’s UI components, syntax highlighting, and theme rendering.