A browser-local shortlist and an account-backed library can look almost identical in a screenshot. The difference becomes visible when you change the storage boundary. A test that saves an item and immediately reads it back proves less than its name may suggest.
I work on Riddle List, a puzzle directory with browser-local saved entrances. This is a standalone test-design note, prepared with AI assistance. It is not a report that new production tests or features were deployed today.
Name the storage boundary in the expectation
Before writing an assertion, state which browser profile, origin and session you intend to preserve. Reloading a page in one context asks whether the item survives a reload. Opening a second isolated context asks whether a different visitor starts with an empty local state. Those are complementary checks, not contradictory outcomes.
Use a fixture containing two catalog items with stable identities. Keep their titles distinct enough that a failed assertion tells you which one disappeared. The test should start with an explicit clean state for that fixture, without clearing a real person's browser data.
Exercise four journeys
First, save one item and reload within the same context. Check the saved state and the saved-list view. If the interface has both a sidebar and a drawer, verify that the two presentations agree.
Second, open the same directory in a fresh isolated context. Check that the first context's shortlist has not appeared there. A failure can reveal a leaky test fixture, not necessarily an unexpected sync feature.
Third, return to the first context and remove the saved item. Reload again. This checks deletion persistence rather than only creation persistence.
Fourth, keep an unrelated saved item while adding and removing the fixture item. A test that clears the entire list before every assertion can miss an implementation that accidentally overwrites all previous entries.
Keep publisher progress outside this contract
Following an official play link should not be described as transferring a game's guesses or streak. A directory bookmark and the publisher's own state belong to different products. Verify the outbound destination independently; do not treat a familiar title as proof that it opens the intended publisher.
The MDN localStorage reference documents origin-specific storage and its access limitations. A test plan should also cover unavailable storage if the application promises a fallback. That is separate from the normal empty-list case.
Make the test name honest
“Saved item survives a reload in the same context” is a useful claim. “Saved items work everywhere” is not supported by that journey. Keep the larger promise out of the test name unless you actually exercise the additional contexts, devices or account service.
The result is a narrower test suite with clearer failures: retention, isolation, deletion and preservation of unrelated items each have their own observable outcome.