mirror of
https://git.cloudron.io/cloudron/syncthing-app
synced 2025-09-01 12:45:02 +00:00
encode the password
This commit is contained in:
@@ -63,7 +63,7 @@ describe('Application life cycle test', function () {
|
|||||||
|
|
||||||
function loadPage(callback) {
|
function loadPage(callback) {
|
||||||
browser.manage().deleteAllCookies().then(function () {
|
browser.manage().deleteAllCookies().then(function () {
|
||||||
return browser.get('https://' + username + ':' + password + '@' + app.fqdn);
|
return browser.get('https://' + username + ':' + encodeURIComponent(password) + '@' + app.fqdn);
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
return pageLoaded();
|
return pageLoaded();
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
@@ -95,7 +95,7 @@ describe('Application life cycle test', function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function removeFolder(callback) {
|
function removeFolder(callback) {
|
||||||
browser.get('https://' + username + ':' + password + '@' + app.fqdn).then(function () {
|
browser.get('https://' + username + ':' + encodeURIComponent(password) + '@' + app.fqdn).then(function () {
|
||||||
return pageLoaded();
|
return pageLoaded();
|
||||||
}).then(function() {
|
}).then(function() {
|
||||||
return browser.findElement(by.css('#folders button')).click();
|
return browser.findElement(by.css('#folders button')).click();
|
||||||
|
Reference in New Issue
Block a user