joelgriffith / navalia

A bullet-proof, fast, and reliable headless browser API
https://joelgriffith.github.io/navalia/
GNU General Public License v3.0
957 stars 33 forks source link

#wait(Number) crashes with timeout #62

Closed castrolol closed 6 years ago

castrolol commented 6 years ago

When I use await chrome.wait(3000); the test crashes with the code

 Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.

the error persists even if I put the parameter timeout...

        await chrome.wait(3000, 5000);
        await chrome.wait(3000, { timeout: 5000 });
        chrome = new Chrome({ timeout: 5000 });
marlonpp commented 6 years ago

hey @castrolol, This is a different issue, it's related to Jasmine. Increasing Jasmine timeout from Jest must do the trick.

jest.setTimeout(20000);
joelgriffith commented 6 years ago

Going to close this for the time being, thanks everyone