Events Platform: Automating the Testing Process
summary
Automated test scripts target the Events Platform event details form, create a speaker node, fill session metadata, assign sponsors and slots, and assert a new event and schedule exist in the database; setup uses Drupal 10 with dub to spin a vanilla site, composer for dependencies, Terminus/Pantheon for envs, and uses Playwright and Cypress alongside ATK; the contributed events test runs in seconds and is added to ATK after refactoring with helper methods and better selectors.
AI-written summary · about
chapters (17)
- 0:00Introduction to events testing
- 3:59What is the events module
- 10:16Setting up the environment
- 12:46Content types and prerequisites
- 14:53Configuring event details
- 19:52Benefits of automated testing
- 20:12Contributing a test to ATK
- 24:51Common automation methods
- 27:05Using DevTools for selectors
- 29:34Mapping test phases and dependencies
- 31:14Running the test suite
- 37:09Why test the events module
- 39:58Comprehensive testing approach
- 41:46Importance of testing in modules
- 43:18Refactoring tests for standards
- 45:51Splitting and condensing tests
- 47:17Improving test durability
