~/talk

Test Your Drupal Site The Easy Way: Use Cypress

Talkat MidCamp 2023 · 2023-04-26..04-28· [drupal, testing]
links:none on file
slides:none on file

Cypress replaces a brittle Behat+Selenium setup with a fast, retryable JavaScript E2E workflow for Drupal sites, using a single dependency, a Docker image for CI, and plugins. Examples include a log in custom command with session caching to speed runs, intercept to stub and wait for AJAX and JSON:API, and a GitHub Actions recipe that tags and parallelizes tests with Cypress Split. Caveats: limited iframe and multi‑tab support and JavaScript/TypeScript only; Lighthouse and axe plugins run audits.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:09Why test and testing pyramid
  3. 5:31Drupal background and testing approaches
  4. 11:01Behat struggles vs Cypress benefits
  5. 16:46Cypress features and philosophy
  6. 20:10Custom commands and authentication
  7. 23:56Best practices for element selection
  8. 26:51Aliases and lifecycle hooks
  9. 28:21Intercepting API requests
  10. 31:39Organizing and structuring tests
  11. 34:51Good vs bad test examples
  12. 40:19Cypress plugins and downsides
  13. 43:38Demo of Cypress test runner
  14. 56:23Q&A and closing
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.