diff --git a/packages/playwright/src/reporters/html.ts b/packages/playwright/src/reporters/html.ts index ce399a2c42..be177c4d0a 100644 --- a/packages/playwright/src/reporters/html.ts +++ b/packages/playwright/src/reporters/html.ts @@ -357,20 +357,22 @@ class HtmlBuilder { } } - // Inline report data. - const indexFile = path.join(this._reportFolder, 'index.html'); - fs.appendFileSync(indexFile, ''); - - - return { ok, singleTestId }; + fs.appendFileSync(path, '";'); } private _addDataFile(fileName: string, data: any) {