From c3533569c14aaff50796d8dcf2fa5a817dfd5a89 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Fri, 28 Jul 2017 15:36:51 -0700 Subject: [PATCH] encode the password --- test/test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test.js b/test/test.js index c6c4f1c..ec2ad3a 100644 --- a/test/test.js +++ b/test/test.js @@ -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();