{"repo":"javierbrea/cypress-localstorage-commands","free":true,"listed":false,"github":"https://github.com/javierbrea/cypress-localstorage-commands","clone":"git clone https://github.com/javierbrea/cypress-localstorage-commands.git","description":"Extends Cypress' cy commands with localStorage methods. Allows preserving localStorage between tests and spec files. Allows disabling localStorage.","language":"JavaScript","stars":179,"topics":["cypress","localstorage","local-storage","methods","utilities","commands","testing-tools","testing","persistence","cypress-plugin"],"license":"MIT","category":"dev-tools","readme_excerpt":"[![Build status][build-image]][build-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Quality Gate][quality-gate-image]][quality-gate-url] [![Mutation testing status][mutation-image]][mutation-url] [![Last commit][last-commit-image]][last-commit-url] [![Last release][release-image]][release-url] [![NPM downloads][npm-downloads-image]][npm-downloads-url] [![License][license-image]][license-url] Cypress localStorage commands Extends Cypress' cy commands with localStorage methods. Allows preserving localStorage between tests and spec files, and disabling localStorage. The problems You want to preserve localStorage between Cypress tests. You want to preserve localStorage between Cypress spec files. You want to disable localStorage to check error handling. This solution This solution allows you to use all browser localStorage methods through Cypress commands, and preserve it between tests and spec files. It also allows to simulate that localStorage is disabled in the browser. Alternatives As from Cypress 12, you can use cy.session and Cypress Test Isolation in order to persist localStorage between tests. Anyway, this plugin can be still used for an easier manipulation of the localStorage, writing localStorage assertions and even disabling it for checking the error handling. Installation This module is distributed via npm which is bundled with node and should be installed as one of your project's devDependencies: Installing commands cypress-localstorage-commands extends","default_branch":null,"files":null,"tree":[],"storefront":"/r/javierbrea","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/javierbrea/cypress-localstorage-commands/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}