You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not entirely sure what's happening with my tests, but here's an example:
constmockeer=require('mockeer');constpuppeteer=require('puppeteer');describe('example test',()=>{letbrowser,page;beforeEach(async()=>{browser=awaitpuppeteer.launch({defaultViewport: {width: 1024,height: 768},ignoreHTTPSErrors: true,headless: true,args: ['--no-sandbox'],});// flip headless to false to have visual representationpage=awaitbrowser.newPage();awaitmockeer(browser);});afterEach(async()=>{awaitpage.close();awaitbrowser.close();});it('should find go to a page',async()=>{expect(awaitpage.goto(....);).toBe(true);});
This works fine when CI=false, and the fixtures get created, but when running with CI=true, I'm getting the following:
Navigation failed because browser has disconnected!
The text was updated successfully, but these errors were encountered:
Some more debugging info, when setting headless to false and playing with the CI param, it looks like the request works fine when CI is set to false, but when set to true, it appears to be not loading anything in the browser and just hanging at the goto line.
I'm not entirely sure what's happening with my tests, but here's an example:
This works fine when CI=false, and the fixtures get created, but when running with CI=true, I'm getting the following:
The text was updated successfully, but these errors were encountered: