Software Testing / Learning brief

Tom finds faults in a flaky Cypress test with time travel

What this means in plain language

Tom replaces a fixed wait with an assertion and finds a cookie banner with the command log.

Understand the full idea, step by step

Analogy: a sat-nav that keeps trying and a dashcam you can scrub. The sat-nav re-checks the road until it finds the turn, and you do not need to count seconds. If you miss the turn, you scrub the dashcam back to see the road at that moment.

Retries are the sat-nav and the command log is the dashcam.

PLAIN WORDS · 1 in this section
retries
tries again after a failure, or those further attempts

Evidence & review

REVIEWED 2026-10-31

The date on this lesson is when it went up on Payments Signal, not when its material was written — most of these were brought across from an earlier catalogue in a single run, which is why so many of them share a date. What the lesson says about the world is dated by the review above and by the sources below it.

Hands-on steps for this tool. The people and the app are invented.

What this brief simplifies: Selected primary passages actually read 7 November 2026; Cypress/version limits stated in lesson. Daily List, rules and observations are synthetic, not an executed live-app test.

Sources for this brief — 6 sources
  1. Implementation-specific

    Cypress best practices ↗ — Cypress.io · Selector intent; data attributes versus required text; controlled test state (selected actual live publisher passages read 7 November 2026; current-documentation scope, not every historical release).

    Selector intent; data attributes versus required text; controlled test state. Apply to the selected release and effective project configuration, not every historical version. · Checked 2026-11-07

    Selected actual primary sections read. Current installation requirements and version-specific module-loading changes are scoped explicitly. Daily List selectors, addresses and outcomes are synthetic. Syntax/consumer checks are not a Cypress package/binary or application execution claim. No arbitrary forced action/repeated write is presented as a repair.

  2. Implementation-specific

    Cypress retry-ability ↗ — Cypress.io · Linked queries/assertions; passed assertion boundaries; once-executed actions; then/should distinction (selected actual live publisher passages read 7 November 2026; current-documentation scope, not every historical release).

    Linked queries/assertions; passed assertion boundaries; once-executed actions; then/should distinction. Apply to the selected release and effective project configuration, not every historical version. · Checked 2026-11-07

    Selected actual primary sections read. Current installation requirements and version-specific module-loading changes are scoped explicitly. Daily List selectors, addresses and outcomes are synthetic. Syntax/consumer checks are not a Cypress package/binary or application execution claim. No arbitrary forced action/repeated write is presented as a repair.

  3. Implementation-specific

    Cypress actionability ↗ — Cypress.io · Disabled/detached/covered target checks and action execution boundaries (selected actual live publisher passages read 7 November 2026; current-documentation scope, not every historical release).

    Disabled/detached/covered target checks and action execution boundaries. Apply to the selected release and effective project configuration, not every historical version. · Checked 2026-11-07

    Selected actual primary sections read. Current installation requirements and version-specific module-loading changes are scoped explicitly. Daily List selectors, addresses and outcomes are synthetic. Syntax/consumer checks are not a Cypress package/binary or application execution claim. No arbitrary forced action/repeated write is presented as a repair.

  4. Implementation-specific

    Cypress debugging ↗ — Cypress.io · Command Log, snapshots and bounded debugging context (selected actual live publisher passages read 7 November 2026; current-documentation scope, not every historical release).

    Command Log, snapshots and bounded debugging context. Apply to the selected release and effective project configuration, not every historical version. · Checked 2026-11-07

    Selected actual primary sections read. Current installation requirements and version-specific module-loading changes are scoped explicitly. Daily List selectors, addresses and outcomes are synthetic. Syntax/consumer checks are not a Cypress package/binary or application execution claim. No arbitrary forced action/repeated write is presented as a repair.

  5. Implementation-specific

    Cypress open mode ↗ — Cypress.io · Interactive launchpad workflow; Command Log, snapshots and console details (selected actual live publisher passages read 7 November 2026; current-documentation scope, not every historical release).

    Interactive launchpad workflow; Command Log, snapshots and console details. Apply to the selected release and effective project configuration, not every historical version. · Checked 2026-11-07

    Selected actual primary sections read. Current installation requirements and version-specific module-loading changes are scoped explicitly. Daily List selectors, addresses and outcomes are synthetic. Syntax/consumer checks are not a Cypress package/binary or application execution claim. No arbitrary forced action/repeated write is presented as a repair.

  6. Simplified educational illustration

    Payments Signal editorial teaching models — Payments Signal · Synthetic Daily List rule and observations stated in the lesson; not a publisher application fact or an executed live-app result.

    This site's own simplified teaching models. · Checked 2026-07-12

    Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.

Learn this properly

START HERECypress: stable selectors, built-in retries and how to debug a failing testPick selectors that last, understand what Cypress retries and what it does not, and use pause and the time-travel view to find out why a test fails.Opens at L0 Explain simply · about 16 min

Related briefs

Tom finds a bug that the test healed away

Leo renames a button and a self-healing tool repairs Tom's test. Everything is green until Mei reads the healing report. A satnav story about quiet repairs, weak checks and why a person must look.

READ BRIEF