Girish Ramakrishnan 7 anni fa
parent
commit
eb1413d88c
1 ha cambiato i file con 11 aggiunte e 11 eliminazioni
  1. 11 11
      test/test.js

+ 11 - 11
test/test.js

@@ -49,7 +49,7 @@ describe('Application life cycle test', function () {
         }).then(function () {
             return browser.get('https://' + app.fqdn + '/login');
         }).then(function () {
-            return browser.sleep(5000); // takes some time for username to be visible
+            return browser.sleep(10000); // takes some time for username to be visible
         }).then(function () {
             return browser.wait(until.elementLocated(by.id('username')), TEST_TIMEOUT);
         }).then(function () {
@@ -69,7 +69,7 @@ describe('Application life cycle test', function () {
         browser.get('https://' + app.fqdn + '/admin/emailers/local').then(function () {
             return browser.wait(until.elementLocated(by.id('host')), TEST_TIMEOUT);
         }).then(function () {
-            return browser.sleep(5000);
+            return browser.sleep(10000);
         }).then(function () {
             return browser.findElement(by.id('host')).getAttribute('value');
         }).then(function (val) {
@@ -80,20 +80,20 @@ describe('Application life cycle test', function () {
 
     function restartForum(done) {
         browser.get('https://' + app.fqdn + '/admin').then(function () {
-            return browser.sleep(3000);
+            return browser.sleep(10000);
         }).then(function () {
             return browser.findElement(by.xpath('//button[text()="Restart"]')).click();
         }).then(function () {
-            return browser.sleep(3000);
+            return browser.sleep(10000);
         }).then(function () {
             return browser.findElement(by.xpath('//button[text()="Confirm"]')).click();
         }).then(function () {
             console.log('Waiting for forum to restart');
-            return browser.sleep(40000); // wait 30secs for reload
+            return browser.sleep(10000); // wait 30secs for reload
         }).then(function () {
             return browser.get('https://' + app.fqdn + '/admin');
         }).then(function () {
-            return browser.sleep(3000);
+            return browser.sleep(10000);
         }).then(function () {
             return browser.wait(until.elementLocated(by.xpath('//h1[text()="Dashboard"]')), TEST_TIMEOUT);
         }).then(function () { done(); });
@@ -145,23 +145,23 @@ describe('Application life cycle test', function () {
         }).then(function () {
             return browser.findElement(by.xpath('//a[text()="Change Picture"]')).click();
         }).then(function () {
-            return browser.sleep(4000);
+            return browser.sleep(10000);
         }).then(function () {
             return browser.findElement(by.xpath('//button[@data-action="upload"]')).click();
         }).then(function () {
-            return browser.sleep(4000);
+            return browser.sleep(10000);
         }).then(function () {
             return browser.findElement(by.xpath('//input[@type="file"]')).sendKeys(path.resolve(__dirname, '../logo.png'));
         }).then(function () {
-            browser.sleep(3000);
+            browser.sleep(10000);
         }).then(function () { // upload it
             return browser.findElement(by.id('fileUploadSubmitBtn')).click();
         }).then(function () {
-            browser.sleep(3000);
+            browser.sleep(10000);
         }).then(function () {
             return browser.findElement(by.xpath('//button[text()="Crop and upload"]')).click();
         }).then(function () {
-           return browser.sleep(3000);
+           return browser.sleep(10000);
         }).then(function () {
             done();
         });