An Easy Way to Automate Complex UI
summary
Describes replacing a slow, flaky backend with a dynamic test-configurable fake API and using concrete design patterns (a page-object factory plus template/strategy patterns together with page objects) to make UI tests smaller, faster, and more stable. Explains building static and dynamic fakes, adding fallbacks to support 20 brands and 40+ payment methods, reducing test scenarios by 55% and duplicate page objects by 35%, and saving per-step screenshots as artifacts to diagnose failures.
AI-written summary · about
chapters (17)
- 0:00Introduction
- 1:51Complex frontend automation
- 4:20Test doubles and types
- 6:05How fakes work
- 8:59Static vs dynamic fakes
- 11:10Fake limitations
- 14:35Contract tests role
- 17:28Async UI content
- 19:16Test duplication
- 21:05Factory pattern
- 25:47Universal locators
- 27:58Template method pattern
- 30:30Strategy pattern
- 32:36Test structure
- 34:22Debugging screenshots
- 37:12Summary
- 37:53Q&A
related talks
44mTechniques to Eradicate Flaky Tests
35mSpeeding Up UI Tests
53mAdvanced Patterns for Automated UI Testing
48mDesign patterns to boost your test automation
39mMastering UI tests
37mSo You're Automated...Now Let's Make It Fast!
44mTesting the untestable - patterns and use cases analysis
38mScaling Automated Testing & Architecture from Startup to Enterprise
