Test Your Drupal Site The Easy Way: Use Cypress
summary
Shows using Cypress as a one-tool end-to-end solution for Drupal sites replacing a seven-dependency Selenium stack, with practical examples: logging in via HTTP request (demo claims ~4x faster), using session cache across specs to avoid repeated auth, uploading files and exercising CKEditor 5, and testing JSON API responses. Covers Cypress features that matter: Cypress intercept stubs requests and adds headers, aliases for shared values, and custom commands, plus CI tips (use Electron or Docker). Notes real limitations: iframes, multiple windows/tabs, and limited browser engine support, and recommends data attributes like data-test-id selectors.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 1:33Testing theory and pyramids
- 5:58Drupal context for testing
- 10:45The hard way: legacy tools
- 16:25Introduction to Cypress
- 23:34Advanced Cypress techniques
- 29:31Organizing test suites
- 37:24Downsides and conclusion
related talks
23mRun your end-to-end tests at light speed with Cypress
35mCypress Tales: Effective E2E Testing
45mCypress: Testing without Selenium, Part 1
50mCypress, the Tool That Will Make You Love End-to-End Testing!
50mShip Web Apps Confidently: End-to-End Testing with Cypress
33mCypress: The future of E2E testing
47mEnd to End Testing with Cypress
46mCypress in practice — overview of the most important capabilities
