diff --git a/packages/playwright-core/src/tools/dashboard/dashboardController.ts b/packages/playwright-core/src/tools/dashboard/dashboardController.ts index f27ecb3e0a719..670eed56f6066 100644 --- a/packages/playwright-core/src/tools/dashboard/dashboardController.ts +++ b/packages/playwright-core/src/tools/dashboard/dashboardController.ts @@ -84,6 +84,7 @@ export class DashboardConnection implements Transport { .catch(() => {}); } this._streams.clear(); + void fs.promises.rm(this._recordingDir, { recursive: true, force: true }).catch(() => {}); this._onclose(); }