cypress-electron-plugin icon indicating copy to clipboard operation
cypress-electron-plugin copied to clipboard

What about other code from main.js?

Open warpdesign opened this issue 6 years ago • 0 comments

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?

warpdesign avatar Oct 24 '19 14:10 warpdesign