Girish Ramakrishnan 7 жил өмнө
parent
commit
38841de9de
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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(); });
     }