# Cart recovery after refresh test report

> Follow a local regression test for a cart with three items. Compare a refresh that loses the saved quantity with the expected restored cart.

Source: https://cueapril.com/reports/lost-cart-after-refresh
Updated: 2026-12-01
Index: https://cueapril.com/llms.txt

## Is an item still present with the correct quantity after the browser reloads?

The original implementation failed the “Reload saved cart” check. Expected 3 and observed 0. The corrected implementation met both expectations on the same inputs.

Reloading a saved cart preserves its quantity. Compare two versions of a small, runnable fixture. The inputs, expected values and recorded results are public.

## What the control case missed

An empty cart makes both implementations look healthy. Reloading a stored quantity of three distinguishes a genuine restoration from silently starting again at zero.

Observed values from the two implementations

| Check | Expected | Original | Corrected |
| --- | --- | --- | --- |
| New cart | 0 | 0 | 0 |
| Reload saved cart | 3 | 0 | 3 |

## What to check before merging

Check that the app restores the right cart before rendering the final quantity. Preserve a second check for missing, expired or malformed storage. This small case reads a saved JSON value and does not exercise a real browser.

## Reproduce the recorded result

Download the [Node.js fixture](/examples/qa-regressions/run.mjs) and run node run.mjs lost-cart-after-refresh with Node.js 24. Compare the printed JSON with the [recorded results](/examples/qa-regressions/results.json). This is a locally executed model of the regression, using synthetic inputs. It covers the rule shown here. Hosted runs, browser behaviour and customer PRs require their own evidence.

## Primary documentation

- [Runnable synthetic regression fixtures](/examples/qa-regressions/run.mjs)
- [Recorded output for all twelve fixtures](/examples/qa-regressions/results.json)

By Cue April. Updated 2026-12-01.

## Related

- [Worked test reports](https://cueapril.com/reports): Replay a real mobile pricing defect from a Cue April pull request. Explore runnable reports for checkout, search, data migrations and other regressions.
- [Pull request testing](https://cueapril.com/use-cases/pull-request-testing): See what a pull request test report should show before you merge. Follow a failing checkout check through the fix and inspect a real PR report.
