Spectron is a testing framework, built upon ChromeDriver and WebdriverIO, for end to end testing Electron applications.
Spectron is built by the Electron team to make end to end testing Electron apps easy. As of 2017 it's the only e2e testing framework with native support for Electron.
It's a wrapper around WebdriverIO which their API's is almost the same, except the additional Electron parts.