0.1.0-dev.1 • Published 3 years ago
@deepsquare/cypress-metamask v0.1.0-dev.1
Cypress MetaMask plugin
Enable interactions with the MetaMask extension in Cypress tests.
Acknowledgments: This plugin was heavily inspired by CraftAcademyLabs/cypress-metamask and Synpress.
Installation
Install the npm package:
npm install -D @deepsquare/cypress-metamask
# or
yarn add -D @deepsquare/cypress-metamask
# or
pnpm install -D @deepsquare/cypress-metamask
NB: if you are using another package manager, adapt the command accordingly.
In your plugin entry file (cypress/plugins/index.js
):
module.exports = (on, config) => {
require('@deepsquare/cypress-metamask/plugin')
}
Limitations
- Firefox is not supported
- Headless mode (which is the default of
cypress run
) is not supported because extensions cannot be installed in headless mode
0.1.0-dev.1
3 years ago