The App Has Changed, and All Tests Are Failing! How Do I Fix Them?
summary
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
chapters (7)
- 0:00Why automated tests fail
- 1:21Reasons for outdated tests
- 3:59Demo project and optimization
- 5:52Five-step debugging process
- 7:45Practical debugging example
- 12:31Iterative test fixing
- 19:53Final tips and resources
related talks
13mDon't Get Lost in the Trees: An Intro to Cypress
23mGaining Confidence with Cypress Tests
47mEnd to End Testing with Cypress
46mAvoiding The Suck Of Testing Using Cypress.io
57mGaining Confidence with Cypress Tests
35mCypress Tales: Effective E2E Testing
29mEnd-to-end Testing Is Hard - But It Doesn't Have to Be
45mCypress: Testing without Selenium, Part 1
