|
@@ -42,9 +42,13 @@ describe('Application life cycle test', function () {
|
|
|
var email, token;
|
|
|
|
|
|
function login(done) {
|
|
|
- browser.manage().window().setSize(1280,768);
|
|
|
- browser.manage().deleteAllCookies();
|
|
|
- browser.get('https://' + app.fqdn + '/login').then(function () {
|
|
|
+ browser.manage().window().setSize(1280,768).then(function () {
|
|
|
+ browser.manage().deleteAllCookies();
|
|
|
+ }).then(function () {
|
|
|
+ return browser.get('https://' + app.fqdn + '/login');
|
|
|
+ }).then(function () {
|
|
|
+ return browser.sleep(5000);
|
|
|
+ }).then(function () {
|
|
|
return browser.executeScript('localStorage.clear();');
|
|
|
}).then(function () {
|
|
|
return browser.get('https://' + app.fqdn + '/login');
|