Browse Source

clear cache

Girish Ramakrishnan 6 năm trước cách đây
mục cha
commit
13820f3f61
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  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();