Filing here for visibility, though it seems to be wholly caused by upgrading Puppeteer 23.4. (I wonder if it's to do with how jest-puppeteer initializes the browser?)
To Reproduce
Ensure Puppeteer 23.4
Run a test suite containing multiple await page.goto('...');
The first one or two will fail: net::ERR_CONNECTION_REFUSED at ...
Subsequent tests will pass
The failures can be fixed by sleeping for a second before the first page.goto, as though somehow the browser isn't ready, or isn't immediately connected to the network properly.
Hello @jamesgpearce, maybe you should fill an issue in Puppeteer. Because browser should be ready, I mean there is no reason to warm it up on our side.
🐛 Bug Report
Filing here for visibility, though it seems to be wholly caused by upgrading Puppeteer 23.4. (I wonder if it's to do with how jest-puppeteer initializes the browser?)
To Reproduce
await page.goto('...');
net::ERR_CONNECTION_REFUSED at ...
The failures can be fixed by sleeping for a second before the first
page.goto
, as though somehow the browser isn't ready, or isn't immediately connected to the network properly.https://github.com/tinyplex/tinybase/blob/248bb46c69e7963bede5e9c2d25768335f9d093b/test/e2e/common.ts#L40-L47
Expected behavior
npx envinfo