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:
@@ -64,13 +64,13 @@ describe('Application life cycle test', function () {
|
||||
function loadPage(callback) {
|
||||
browser.manage().deleteAllCookies();
|
||||
browser.get('https://' + username + ':' + password + '@' + app.fqdn);
|
||||
return pageLoaded().then(function() {
|
||||
pageLoaded().then(function() {
|
||||
callback();
|
||||
});
|
||||
}
|
||||
|
||||
function addFolder(callback) {
|
||||
return pageLoaded().then(function() {
|
||||
pageLoaded().then(function() {
|
||||
browser.findElement(by.css('[ng-click*=addFolder]')).click();
|
||||
return visible(by.id('folderPath')).then(function() {
|
||||
return browser.findElement(by.id('folderLabel')).sendKeys('test');
|
||||
@@ -93,7 +93,7 @@ describe('Application life cycle test', function () {
|
||||
|
||||
function removeFolder(callback) {
|
||||
browser.get('https://' + username + ':' + password + '@' + app.fqdn);
|
||||
return pageLoaded().then(function() {
|
||||
pageLoaded().then(function() {
|
||||
browser.findElement(by.css('#folders button')).click();
|
||||
setTimeout(function() {
|
||||
browser.findElement(by.css('#folder-0 button[ng-click*=editFolder]')).click();
|
||||
|
Reference in New Issue
Block a user