~/talk

Test Your Drupal Site The Easy Way: Use Cypress

Talkat DrupalCamp NJ 2023 · 2023-03-16..03-18· [testing, php]
links:none on file
slides:none on file

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

  1. 0:00Introduction
  2. 1:33Testing theory and pyramids
  3. 5:58Drupal context for testing
  4. 10:45The hard way: legacy tools
  5. 16:25Introduction to Cypress
  6. 23:34Advanced Cypress techniques
  7. 29:31Organizing test suites
  8. 37:24Downsides and conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.