Test as if you're in someone else's shoes
summary
Shows concrete refactors inside Intercom’s Ember codebase: replace brittle asserts on internal state and CSS classes with test visible text and avoid CSS classes, move internal checks into fast unit test session service specs, convert component checks to Ember rendering/integration/rendering tests that simulate clicks and navigation, and reserve Selenium/Cypress end-to-end runs for cross-service flows like deleting an article. Includes numbers of failing patterns (many duplicated tests, unnecessary runLoop/lifecycle hooks) and before/after code sketches showing tests that actually mimic user interactions.
AI-written summary · about
chapters (7)
- 0:00Intro
- 0:34Story Time
- 2:37Moral of the Story
- 3:19Testing
- 3:36Common tests
- 5:45How to write a good test
- 7:38Test sites
related talks
28mDeveloping an Ember Test Strategy
36mUsing Tests as a Tool to Wrangle Legacy Projects
29mTesting Is All About Principles
37mFront-end Testing for Skeptics
45mTesting Big in JavaScript
44mTesting the untestable - patterns and use cases analysis
49mFront End Testing Frontier
55mModern Web Testing: Going Beyond Selenium
