I want to test how my application interacts with Metamask (e.g. is the wallet open?) and create a flexible test configuration that enables me to access the application by 'mounting' the Metamask interface in a similar way to how ordinary 'login' is done (I use MM for login effectively) in the Assert JS (2018) lecture videos like: https://www.youtube.com/watch?v=5XQOK0v_YRE Is there any reference material or advice for testing Metamask with Cypress? Cypress has the following documentation for loading a Chrome extension plugin:
module.exports = (on, config) => {
on('before:browser:launch', (browser, launchOptions) => {
// supply the path to an unpacked WebExtension
// NOTE: extensions cannot be loaded in headless Chrome
launchOptions.extensions.push('/path/to/webextension')
return launchOptions
})
}
but there's no other assistance beyond this. Once it's loaded, how would I interact with it to produce meaningful tests? I expect that this should be possible. I see that other's have considered the issues and I have posted this question in the MM github: https://github.com/MetaMask/metamask-extension/issues/8605 thx ...