mirror of
https://git.cloudron.io/cloudron/syncthing-app
synced 2025-09-01 04:34:58 +00:00
Fixed tests
This commit is contained in:
@@ -15,8 +15,8 @@
|
||||
"mocha": "^2.5.3",
|
||||
"rimraf": "^2.5.3",
|
||||
"selenium-server-standalone-jar": "^2.53.1",
|
||||
"selenium-webdriver": "^2.53.3",
|
||||
"selenium-webdriver": "^2.53.1",
|
||||
"superagent": "^1.4.0",
|
||||
"chromedriver": "^2.27.0"
|
||||
"chromedriver": "^2.31.0"
|
||||
}
|
||||
}
|
||||
|
@@ -63,7 +63,9 @@ describe('Application life cycle test', function () {
|
||||
|
||||
function loadPage(callback) {
|
||||
browser.manage().deleteAllCookies().then(function () {
|
||||
return browser.get('https://' + username + ':' + encodeURIComponent(password) + '@' + app.fqdn);
|
||||
return browser.get('https://' + username + ':' + encodeURIComponent(password) + '@' + app.fqdn).then(function () {
|
||||
return browser.get('https://' + app.fqdn);
|
||||
});
|
||||
}).then(function () {
|
||||
return pageLoaded();
|
||||
}).then(function () {
|
||||
@@ -96,6 +98,8 @@ describe('Application life cycle test', function () {
|
||||
|
||||
function removeFolder(callback) {
|
||||
browser.get('https://' + username + ':' + encodeURIComponent(password) + '@' + app.fqdn).then(function () {
|
||||
return browser.get('https://' + app.fqdn);
|
||||
}).then(function () {
|
||||
return pageLoaded();
|
||||
}).then(function() {
|
||||
return browser.findElement(by.css('#folders button')).click();
|
||||
|
Reference in New Issue
Block a user