encode the password

This commit is contained in:
Girish Ramakrishnan 2017-07-28 15:36:51 -07:00
parent 06a75583e8
commit c3533569c1
1 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ describe('Application life cycle test', function () {
function loadPage(callback) {
browser.manage().deleteAllCookies().then(function () {
return browser.get('https://' + username + ':' + password + '@' + app.fqdn);
return browser.get('https://' + username + ':' + encodeURIComponent(password) + '@' + app.fqdn);
}).then(function () {
return pageLoaded();
}).then(function () {
@ -95,7 +95,7 @@ describe('Application life cycle test', function () {
}
function removeFolder(callback) {
browser.get('https://' + username + ':' + password + '@' + app.fqdn).then(function () {
browser.get('https://' + username + ':' + encodeURIComponent(password) + '@' + app.fqdn).then(function () {
return pageLoaded();
}).then(function() {
return browser.findElement(by.css('#folders button')).click();