Plugins
What's inside?
Here is a list of plugins and libraries that come with this boilerplate:
Prettier
Keeps the code clean and same style for everyone working on the project.
Modify the config in ./.prettierrc
Husky
Doesn't let you commit without prettier
run.
cypress-store
Store and retrieve values between test files.
See the documentation.
cypress-iframe
See the documentation.
You can use the commands like described here
cypress-localstorage-commands
Example usage:
beforeEach(() => {
cy.restoreLocalStorage()
cy.visit('/')
})
afterEach(() => {
cy.saveLocalStorage()
})