Commit e5bd47d5 authored by MrMan's avatar MrMan

Add check for login button

parent 262d7392
import { Promise } from 'q';
import Q from 'q';
import Static from 'node-static';
import Http from 'http';
import NM from 'nightmare';
......@@ -42,6 +42,17 @@ describe("Login page", function() {
});
});
it("Should show the login button", (done) => {
Q.all(
nm.goto(BASE_URL).exists(LOGIN_BUTTON_ID),
nm.goto(BASE_URL).visible(LOGIN_BUTTON_ID)
).then(all => {
all.should.be.true();
done();
});
});
afterEach(done => {
// End the electron process
Promise.resolve(nm.end()).then(done);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment