~/talk

The App Has Changed, and All Tests Are Failing! How Do I Fix Them?

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

A 26-test Cypress suite runs against a newer GitLab image and 22 of 26 tests fail; fixes follow a five-step loop: read headless logs, reproduce in interactive Cypress, inspect DOM and console, edit tests, rerun until green. Failures stem from changed selectors, moved URLs and removed features; practical techniques shown include cy.session and cy.request to speed setup and replacing brittle selectors with scoped queries using cy.get(...).find(...).first() to target the visible element and make results deterministic on CI.

AI-written summary · about

  1. 0:00Why automated tests fail
  2. 1:21Reasons for outdated tests
  3. 3:59Demo project and optimization
  4. 5:52Five-step debugging process
  5. 7:45Practical debugging example
  6. 12:31Iterative test fixing
  7. 19:53Final tips and resources
~/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.