Explorar o código

fix test restart

Girish Ramakrishnan %!s(int64=8) %!d(string=hai) anos
pai
achega
42b30e0327
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      test/test.js

+ 4 - 0
test/test.js

@@ -70,6 +70,10 @@ describe('Application life cycle test', function () {
     function restartForum(done) {
         browser.get('https://' + app.fqdn + '/admin').then(function () {
             return browser.findElement(by.xpath('//button[text()="Restart"]')).click();
+        }).then(function () {
+            return browser.sleep(3000);
+        }).then(function () {
+            return browser.findElement(by.xpath('//button[text()="OK"]')).click();
         }).then(function () {
             return browser.sleep(10000); // wait 10secs for reload
         }).then(function () {