diff --git a/packages/core/src/BitmapsGenerator.ts b/packages/core/src/BitmapsGenerator.ts index daabb2b0..62d42877 100644 --- a/packages/core/src/BitmapsGenerator.ts +++ b/packages/core/src/BitmapsGenerator.ts @@ -116,7 +116,7 @@ export class BitmapsGenerator { await svgElement.screenshot({ omitBackground: true, path: out }); } - this.closeAllPages(browser); + await this.closeAllPages(browser); } /** @@ -173,6 +173,8 @@ export class BitmapsGenerator { index++; } } + + await this.closeAllPages(browser); } /**