Files
habitica/test/e2e/e2e.js
T
2014-01-01 14:01:23 -03:00

22 lines
461 B
JavaScript

'use strict';
describe('index page', function() {
beforeEach(function(){
browser.ignoreSynchronization = true;
browser.get('http://localhost:3000/');
});
it('shows the front page', function(){
// browser.sleep(3000);
var button = element(by.className('btn'));
expect(button.getText()).toEqual('Play');
});
it('shows the login form', function(){
var button = element(by.className('btn'));
button.click();
});
});