Girish Ramakrishnan 7 anos atrás
pai
commit
38841de9de
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      test/test.js

+ 1 - 1
test/test.js

@@ -95,7 +95,7 @@ describe('Application life cycle test', function () {
         }).then(function () {
             return browser.sleep(3000);
         }).then(function () {
-            return browser.findElement(by.xpath('//h1[text()="Dashboard"]'))
+            return browser.wait(until.elementLocated(by.xpath('//h1[text()="Dashboard"]')), TEST_TIMEOUT);
         }).then(function () { done(); });
     }