Automate your testing with Nightwatch.js
summary
Live demo shows Nightwatch.js in Drupal 8.6 core running real end‑to‑end tests that assert page title, wait for elements, and click buttons; tests run locally or via Selenium + chromedriver + Docker or cloud services (Sauce Labs, BrowserStack). CI runs initially hit ~40 minutes but are trimmed to ~10 minutes for core suites. Upgrading jQuery surfaces issues—one run finds 3 real bugs—and test hooks produce logs, screenshots and video so automated checks reliably catch regressions.
AI-written summary · about
chapters (14)
- 0:00Intro
- 1:06Nightwatch
- 1:45Writing the test
- 8:49Selenium
- 11:03Setup
- 15:42Containers
- 19:25Nightwatch in Drupal
- 23:03Writing more tests
- 25:08Testing DrupalCampSG
- 28:18Testing with selenium
- 30:03Testing with log
- 36:53Accessibility testing
- 38:58Tips
- 44:23Conclusion
related talks
28mFrontend Testing
18mMake Debugging & Test Suite Maintenance a Breeze with Selenium & Nightwatch
30mJSConf 2015 Dave Cadwallader
09mElemental Testing My Dear Watson - Unit Tests for UI Components
42mReliable and Maintainable Webdriver Tests
37mAutomated Performance Testing With WebDriver
49mTesting for the Brave and True
46mTest Your Drupal Site The Easy Way: Use Cypress
