Girish Ramakrishnan hace 6 años
padre
commit
13820f3f61
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6 0
      test/test.js

+ 6 - 0
test/test.js

@@ -69,6 +69,12 @@ describe('Application life cycle test SSO', function () {
     function signUp(callback) {
         browser.manage().deleteAllCookies();
         browser.get('https://' + app.fqdn).then(function () {
+            return browser.executeScript('localStorage.clear();');
+        }).then(function () {
+            return browser.executeScript('sessionStorage.clear();');
+        }).then(function () {
+            return browser.get('https://' + app.fqdn);
+        }).then(function () {
             return waitForElement(by.xpath('//a[@title="Sign up"]'));
         }).then(function () {
             return browser.findElement(by.xpath('//a[@title="Sign up"]')).click();