An Electron Testing Framework
An open source framework for easily writing integrations tests for your Electron app. Spectron sets up and tears down your app and allows it to be test-driven remotely with full support for the Electron APIs. Built on top of ChromeDriver and WebDriverIO.
Spectron makes the entire Chromium and Electron APIs available to your tests.
Interact with and verify the behavior of multiple windows from a single test.
The example test below verifies that a visible window is opened with a title.
|/||Focus the search bar|
|Esc||Focus the search bar and cleans it|
|↓||Select the next search result|
|↑||Select the previous search result|
|Enter||Open the selected search result|
|cmdEnter||Ctrl+Enter||Open the selected search result in a new tab|