Closed ashmortar closed 3 years ago
This actually was due to me requesting the dialog from the main thread via the renderer with ipc.sendSync
which worked fine in app with user interactions, but because it is synchronous I believe it blocks execution of the mock handler. Changing to ipc.invoke / ipc.handle
resolved the issue.
I'm using electron 10.1.6 and testcafe-browser-provider-electron i've tried both 0.0.16 and 0.0.15 with the same result. Here is my test:
but when I click on the selector opens the save-dialog the app just hangs. It doesn't actually matter if call the
setElectronDialogHandler
or not, when I click the ui element that opens a dialog the app hangs.