~/talk

It's a (Testing) Trap! - Common Testing Pitfalls and How to Solve Them

Talkat Front-End Test Fest 2021 · on Tuesday, 2021-06-08· [testing]
slides:none on file

Uses Jest for unit tests and Cypress for end-to-end tests on a Shopware app and shows concrete fixes: reset the app in beforeEach reset and create fixture data via API so tests are isolated, replace brittle CSS with data- selectors or cy.contains, avoid fixed sleeps and prefer cy.wait for API or waiting for UI changes, name tests with Roy Osherove’s three-part rule and structure them with Arrange‑Act‑Assert. Claims these changes cut flakiness and speed pipelines; legacy refactors may be needed but they work.

AI-written summary · about

  1. 0:00Introduction
  2. 1:29Testing as a trap analogy
  3. 3:38Three common testing pain points
  4. 7:30Golden rule: Keep tests simple
  5. 10:43Test naming with three-part rule
  6. 12:28Test structure with AAA pattern
  7. 14:14Avoid shared test data
  8. 17:08Meaningful test data naming
  9. 18:51Avoid implementation details in selectors
  10. 20:58Replace fixed waits with dynamic waits
  11. 23:47Refactoring legacy test code
  12. 24:48Tests as friendly assistants
  13. 27:09Q&A session begins
  14. 28:11Flat test design explained
  15. 30:18Balancing abstractions in tests
  16. 31:43Most annoying testing trap
  17. 33:07Overcoming flaky tests
  18. 35:37Mocking database results debate
  19. 36:41Choosing test types wisely
  20. 39:10Preference for unit testing
  21. 40:34Final tips for faster tests
  22. 42:00Closing and thank you
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.