Skip to content

Add basic UI test with Spectron #371

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed

Add basic UI test with Spectron #371

wants to merge 3 commits into from

Conversation

NazulIslam
Copy link

Basic UI test with Spectron.

this.timeout(60000);

beforeEach(function () {
require("../src-gen/backend/main"); // start the express server
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should not it be done by electron-main and we only should wait until the window is visible?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to add waitUntilWindowLoaded(), but got an error:
return app.client.waitUntilWindowLoaded(10000)

 TypeError: waitUntilWindowLoaded Cannot read property 'isLoading' of undefined
  at waitUntil(<Function>, 60000) - application.js:227:17

error Command failed with exit code 1.

Looking at electron-userland/spectron#174, seems similar.

@hexa00
Copy link

hexa00 commented Aug 15, 2017

See #87 for the devtools issue

@svenefftinge
Copy link
Contributor

can this be closed, because you mentioned yesterday you stop looking into it.

@hexa00 hexa00 closed this Aug 25, 2017
@hexa00 hexa00 deleted the GH-317 branch December 12, 2017 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants