cypress-electron-plugin
cypress-electron-plugin copied to clipboard
What about other code from main.js?
Im trying to use this new plugin to test my Electron app.
Moving window creation into a separate function as suggested is possible, but my main.js does more things, for eg.:
- it installs some ipcMain handlers
- ...
One of the handlers may have to re-create the app's menu as well.
Where should this code go? If I understand correctly, using cypress-electron-plugin as suggested, only the new main_browser_window.js will be get executed?