← Build notes

Test a web app’s offline behavior before release

Turn the network off and run the full user task. Check whether the app opens, a local change survives a reload, and any queued work behaves predictably when the connection returns.

Offline test sequence
  1. DisconnectStart from a known cache and storage state
  2. Write and reloadReopen the local result
  3. ReconnectCheck duplicates and status changes

Test startup with two browser states

Use a fresh browser profile for a first visit and a second profile that has loaded the app online. In each profile, disconnect and reload. The two results can differ because a service worker and the resources it caches usually need an initial successful load. Record which screens open and where the interface explains that it needs a connection.

Run four reproducible cases

  1. Open the app online, let its offline setup finish, then disconnect and reload. Record the app version and whether you can reach the target screen.
  2. Create two short records offline. Close the tab, reopen it while disconnected, and check whether both records are present and distinguishable.
  3. Interrupt the connection while sending a queued record, then reconnect. If the prototype syncs, check that the recipient has one copy and the local state shows the result. If it exports, open the exported file.
  4. Change the offline data while a previous version of the app is still open. Reopen after an update and verify the records survive or the app can explain how to recover them.

Record what the visitor sees

A test report should show the starting state, the steps, the visible status, and the stored result. Give each run a deliberate input such as “offline test seven” so you can distinguish a newly committed record from an old fixture. Repeat on your target browser and on a real device with a disconnected connection.

For implementation background, read MDN’s ServiceWorker reference. Try the sequence on AppDraft’s local voice-note prototype. For a separate wearable interface being designed around short captures, follow MICRO’s development.