electron-userland / spectron

DEPRECATED: 🔎 Test Electron apps using ChromeDriver
http://electronjs.org/spectron
MIT License
1.68k stars 229 forks source link

how can I mock a dialog with spectron14? #902

Open mankeheaven opened 3 years ago

mankeheaven commented 3 years ago

https://github.com/joe-re/spectron-fake-dialog, it can run with spectron13, but not work with spectron 14

I guess ipcrender.sendsync is ok, but args with preload.js can not work, and ipcmain.on is not ok

I don't know what is the matter with spectron14 and electron, how can I mock a dialog with spectron 14