vladimiry / ElectronMail

Unofficial ProtonMail Desktop App
GNU General Public License v3.0
1.51k stars 99 forks source link

Drop `spectron` use #409

Closed vladimiry closed 3 years ago

vladimiry commented 3 years ago

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:

So the goal is to keep the currently used e2e-testing scenario but without using any electron-specific testing framework.

vladimiry commented 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.