Add Types To Your Local Storage During End-to-End Tests (opens in new tab)
If your web application stores data locally in the localStorage object, you can easily set / verify the data from your Cypress end-to-end tests. For example: cypress/e2e/players.cy.js123456789101
Read the original article