File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1818- Add removeLocalStorage command
1919- Add acceptance tests
2020
21+ ### Changed
22+ - Improve documentation
23+
2124## [ 1.0.0] - 2019-10-26
2225### Added
2326- Add saveLocalStorage command
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ npm i --save-dev cypress-localstorage-commands
3131Add this line to your project's ` cypress/support/commands.js ` :
3232
3333``` js
34- import ' cypress-localstorage-commands'
34+ import " cypress-localstorage-commands"
3535```
3636
3737You can now use all next commands:
@@ -48,6 +48,18 @@ cy.restoreLocalStorage() // Restore localStorage to previously "snapshot" saved
4848cy .clearLocalStorageSnapshot () // Clear localStorage "snapshot" values
4949```
5050
51+ ``` js
52+ cy .getLocalStorage (" item" ) // Get localStorage item
53+ ```
54+
55+ ``` js
56+ cy .setLocalStorage (" item" , " value" ) // Set localStorage item
57+ ```
58+
59+ ``` js
60+ cy .removeLocalStorage (" item" ) // Remove localStorage item
61+ ```
62+
5163## Contributing
5264
5365Contributors are welcome.
You can’t perform that action at this time.
0 commit comments