소스 검색

encode the password

Girish Ramakrishnan 7 년 전
부모
커밋
c3533569c1
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      test/test.js

+ 2 - 2
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();