← Back Published on

Cypress/Metamask Integration

  • IDE: VS Code
  • Cypress Version: 10.0.8
  • Language: Javascript
  • Framework: In-built Mocha f/w and Chai Assertion Library
  • Plugin: Synpress

To test the interaction of Decentralised Apps with Metamask Wallet, a plugin called Synpress mends well with existing cypress framework. Synpress has in-built custom commands which will allow us to interact with Metamask which is a browser extension that cannot be dealt by Cypress. So, Synpress comes to rescue and gives our framework the ability to test the interaction with Metamask and also allow us to carry out the tests that needs an active wallet connection.

I have created a portfolio, that gives an outline of how to set up Synpress. I have also written an article : https://swathikavisagn.journop...on the detailed steps of the plugin installtion and configuration settings.

My Repository link:

https://github.com/SwathiVisag...

A snip showing successfull metamask setup using synpress: