From 00c8dd7ecc8672bcecb84b5b7cf00a4702687e5d Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Thu, 10 Aug 2023 13:02:35 -0700 Subject: [PATCH] chore(html): remove unused map (#26415) --- packages/playwright-test/src/reporters/html.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/playwright-test/src/reporters/html.ts b/packages/playwright-test/src/reporters/html.ts index 72503e75c9..e7c2d4da25 100644 --- a/packages/playwright-test/src/reporters/html.ts +++ b/packages/playwright-test/src/reporters/html.ts @@ -185,7 +185,6 @@ export function startHtmlReportServer(folder: string): HttpServer { class HtmlBuilder { private _config: FullConfig; private _reportFolder: string; - private _testPath = new Map(); private _stepsInFile = new MultiMap(); private _dataZipFile: ZipFile; private _hasTraces = false; @@ -323,8 +322,7 @@ class HtmlBuilder { private _createTestEntry(test: TestCasePublic, projectName: string, reportName: string | undefined, path: string[]): TestEntry { const duration = test.results.reduce((a, r) => a + r.duration, 0); const location = this._relativeLocation(test.location)!; - path = [...path.slice(1)]; - this._testPath.set(test.id, path); + path = path.slice(1); const results = test.results.map(r => this._createTestResult(test, r));