You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
spectron is going to stop working since @electron v14 as it still depends on remote thing (being currently deprecated in @electron and will be removed since v14). The spectron seems to be getting into the unmaintained mode soon.
I know there is at least playwright testing framework that supports @electron to some extent. But a more forward-thinking way is to go framework-less:
Implementing the web testing steps in an e2e-specific preload script that doesn't come into the production build. Similarly for the main process part. Splitting e2e-specific code is easy to do since we already use @webpack and injected BUILD_ENVIRONMENT build-time variable.
Then the test runner, like @avajs or any other, would execute the testing flow with passing the testing steps controlling env variables to the above-named main process e2e-specific script (based on the received env variable the main process would connect the relevant preload script to the app's browser window).
It would be an improvement to the currently used scenario if the e2e tests were executed on the app installed from the actual installer rather than from the "unpacked" package (at least deb/exe/dmg packages). It's technically possible to do.
So the goal is to keep the currently used e2e-testing scenario but without using any electron-specific testing framework.
The text was updated successfully, but these errors were encountered:
* aside other things, the change allows switching to @electron v14 since "playwright" doesn't depended on "remote" module (removed from @electron since v14)
I know there is at least playwright testing framework that supports @electron to some extent.
I ended up switching to https://github.com/microsoft/playwright for now. The switch was relatively easy (I kept the existing test structure/framework). Using playwright has been a nicer experience for me so far than using spectron.
* aside other things, the change allows switching to @electron v14 since "playwright" doesn't depended on "remote" module (removed from @electron since v14)
spectron
is going to stop working since @electron v14 as it still depends onremote
thing (being currently deprecated in @electron and will be removed since v14). Thespectron
seems to be getting into the unmaintained mode soon.I know there is at least
playwright
testing framework that supports @electron to some extent. But a more forward-thinking way is to go framework-less:preload
script that doesn't come into the production build. Similarly for the main process part. Splitting e2e-specific code is easy to do since we already use @webpack and injected BUILD_ENVIRONMENT build-time variable.So the goal is to keep the currently used e2e-testing scenario but without using any electron-specific testing framework.
The text was updated successfully, but these errors were encountered: