DEV Community

Discussion on: Dealing with Asynchrony when Writing End-To-End Tests with Puppeteer + Jest

Collapse
 
leopinzon profile image
Leopinzon

Great article @Albert. One question around something that's driving me crazy, the following line always ends with a timeout error. Without the await clause is not trustable for the asynchronous behavior.

await page.waitForNavigation({waitUntil: "domcontentloaded"});

Any thoughts?