[Not working] Testing tray-only app with Spectron


Hi there.

I am trying to write test for electron app based from spectron readme example (https://github.com/electron/spectron#with-chai-as-promised ), but I can not make it work.

I am doing really simple test here: https://github.com/hovancik/strechly/blob/feature/tests/tests/index.js
But all my results are with error: https://travis-ci.org/hovancik/strechly/jobs/145827763

Error: timeout of 2000ms exceeded. Ensure the done() callback is being called in this test.

No idea what I am doing wrong. Any ideas welcome.


So the problem is that it is tray-only app. Spectron does not seems to be able to work with this, as in every example where I found there is return app.client.waitUntilWindowLoaded(). Which wont happen with tray-only app.