Girish Ramakrishnan 7 rokov pred
rodič
commit
38841de9de
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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(); });
     }