0

I'm setting up integration test workflow in my current project. For that I'm using jest-puppeteer and writing test cases in typescript. But await page.goto(url, {waitUntil:'networkidle2'}) is unable to load any URL. I have reproduced the issue please refer this package. https://github.com/Dip686/jest-puppeteer-ts

enter image description here

Dip686
  • 641
  • 6
  • 16
  • why are you importing puppeteer and redefining browser and page? – mbit Mar 12 '20 at 20:33
  • updated the redeclaration of variable, by importing puppeteer do u mean require statement in layout.test.ts file? – Dip686 Mar 12 '20 at 20:48
  • 1
    if you're using jest-puppeteer you don't need to launch browser or create page. – mbit Mar 12 '20 at 20:57
  • @mbit, thanks, relaunching browser is breaking the flow, used the existing page instance provided by the jest-puppeteer working fine. – Dip686 Mar 13 '20 at 03:39

0 Answers0