
Local Storage Validation
Verify the data your app keeps in the browser
Check LocalStorage compares a localStorage key with the value you expect. Use it to verify the client side data your application stores in the browser.
Use it after the moments that save state:
Feature flags and preferences
State saved after login or onboarding
Basket and draft data
Consent choices kept in storage
Check LocalStorage pairs well with Set LocalStorage for a known starting value, Store LocalStorage to reuse a value and Delete LocalStorage to reset. Use Check SessionStorage for per-tab data.
