Closed vladimiry closed 3 years ago
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
.
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.