re: Dealing with Asynchrony when Writing End-To-End Tests with Puppeteer + Jest VIEW POST


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?

code of conduct - report abuse