This PR fixes occasional test failures caused by Puppeteer page not properly closed before the next test runs. We fix it by awaiting page.close() (old logic is having it in try/finally). In the event of test failure, not closing would not be critical anyways, and calling close would not help much.
This PR fixes occasional test failures caused by Puppeteer page not properly closed before the next test runs. We fix it by awaiting
page.close()
(old logic is having it in try/finally). In the event of test failure, not closing would not be critical anyways, and calling close would not help much.