~/talk

Frankenstein Tests

Talkat TestFlix 2024 · 2024-10-19..10-20· [testing, developer-experience]
slides:none on file

Claims that autogenerated Playwright tests become unreadable Frankenstein code by mixing JavaScript, Playwright code generator locators and no domain language and demonstrates a real failing example that uses getByPlaceholder, redundant clicks and no backend check. Shows a fix path: move locators to a module, rename functions to domain verbs like agreeToTerms and submitRegistration, extract constants such as validEmail, add an API assertion that the saved entry includes the submitted data, and use adapters or page object interfaces to decouple tool language from domain intent.

AI-written summary · about

  1. 0:00Introduction to Frankenstein tests
  2. 1:53Problems with generated tests
  3. 4:22Refactoring tests for readability
  4. 9:10Page object model approach
  5. 10:34Solutions and conclusion
~/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.