Closed andyearnshaw closed 2 years ago
This is caused by Puppeteer sending a SIGKILL
to the Docketeer process when browser.close()
is called following puppeteer.launch()
. It only does this when the userDataDir
option is not specified in the options to launch()
, because it creates a temporary directory by default and it does not care about the browser gracefully exiting in this case as the OS will clean up the temp dir and it won't be used again.
v1.0.3 contains a workaround for this, see https://github.com/andyearnshaw/docketeer#known-issues. Any proper fix would require a change to puppeteer.
Tested with Karma (custom launcher for puppeteer) and
@storybook/addon-storyshots-puppeteer
. It works withpuppeteer.attach()
when the launch script is executed directly:It's only when
puppeteer.launch()
is used that the browser is not properly closed whenbrowser.close()
is called. The following puppeteer script should repro: