~/talk

Test Confidence: Types of Flake & How to Remediate

Talkat CypressConf 2023 · on Tuesday, 2023-10-17· [testing]
slides:none on file

Flaky tests cause lost trust as suites scale: a constant 10% flake rate turns into many unreliable tests as count grows. Concrete bugs include wrong element selection from cy.get selector pitfalls, missed intercepts when not define intercept before request, and cross-test state causing pipeline-only failures fixed by cy.session or programmatic setup/teardown. Remediation is to assert lengths or states, intercept before navigation, isolate test data, avoid blanket retries, and use Cypress Cloud flake analytics to track offenders.

AI-written summary · about

  1. 0:00Introduction to test flake
  2. 1:25Why test flake matters
  3. 3:12Early flake remediation strategies
  4. 4:16Tool misuse causing flake
  5. 7:47Local vs pipeline test differences
  6. 10:16Avoiding anti-patterns in waits
  7. 12:03Parallel test conflicts
  8. 13:47Ensuring test independence
  9. 15:35Retryability of tests
  10. 18:03When flake reveals real issues
  11. 19:50Handling random test failures
  12. 20:52Flake analytics and tools
  13. 21:13Key takeaways on test confidence
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.