1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 09:23:13 +01:00

Make sure to wait for LoginContainer

This commit is contained in:
Brett Sun 2016-01-25 17:37:04 +01:00
parent bdc13473a1
commit ebb8248364

View File

@ -26,7 +26,7 @@ function testSuite(browserName, version, platform) {
return browser return browser
.init({ browserName, version, platform }) .init({ browserName, version, platform })
.get(config.APP_URL + '/login') .get(config.APP_URL + '/login')
.waitForElementByCss('.ascribe-default-app', asserters.isDisplayed, 1000) .waitForElementByCss('.ascribe-default-app', asserters.isDisplayed, 10000)
.catch(function (err) { .catch(function (err) {
console.log('Failure -- unable to load app.'); console.log('Failure -- unable to load app.');
console.log('Skipping tests for this browser...'); console.log('Skipping tests for this browser...');
@ -39,7 +39,9 @@ function testSuite(browserName, version, platform) {
}); });
it('should contain "Log in" in the title', function() { it('should contain "Log in" in the title', function() {
return browser.title().should.become('Log in'); return browser.
waitForElementByCss('.ascribe-login-wrapper', asserters.isDisplayed, 2000)
title().should.become('Log in');
}); });
}); });
} }