Description
Spectron has not been updated to work with Electron 10 in a timely manner, and it seems like it may soon lose its ability to work with Electron at all. The only way to use spectron in the future is in completely security-disabled environments which then do not show the real-world case of an app. Currently the problems are:
- electron 10
- contextIsolation: true
- enableRemoteModule: false
contextIsolation:
Every single application should have context isolation enabled and from Electron 12 it will be enabled by default.
From Electron Docs
enableRemoteModule
In Electron 10, the remote module is now disabled by default
From Breaking Changes
I think it should be time to come up with a solution. I think in order to make spectron work with electron 10 and contextIsolation, the api needs a proper contextbridge script in the preload.js