Flaky tests
summary
Flaky tests hide in async timing, UI animation and tiny locale quirks: one project has 9,000 unit tests vs 900 UI tests where unit runs in ~1 minute and UI runs ~40 minutes. Reproductions include a week‑based‑year format using 'Y' vs 'y' that flips the date a few days a year, a kiosk keyboard where clicking body inserts an accidental 'n' because Selenium clicks element centers, moving elements and transient scrollbars that “eat” clicks. Fixes include Selenite smart-waiting, disabling animations and fixed window sizes, saving slow‑motion videos with video-recorder-java or Selenoid/Testcontainers for postmortem.
AI-written summary · about
chapters (10)
- 0:00Introduction to flaky tests
- 2:29Understanding test flakiness
- 7:23Case studies and root causes
- 12:30The role of Selenite
- 14:12Deep dive: Date logic bugs
- 18:30Deep dive: Interaction flaws
- 24:08Deep dive: Animation issues
- 27:45Deep dive: Usability findings
- 32:36Deep dive: Scroll bar interference
- 39:42Best practices and conclusions
related talks
48mFlaky Tests 2.0
26mKeeping Your Tests Lean
38mFlakiness in your tests isn't down to test framework
44mObservability meets a Flaky Test
40mFinding Flakiness: The Real Reasons Your Tests Aren't Reliable
47mHow to Un-Flake Flaky Tests- a New Hire's Toolkit
15mHow to Fix Flakiness in Tests | Using Time Machines to Debug #FlakyTest
15mHow to (not) write a flaky test
