From b3b5497578f31442aaf9467c843962a27fa5e1ff Mon Sep 17 00:00:00 2001 From: Pavel Feldman Date: Wed, 20 Oct 2021 09:35:49 -0800 Subject: [PATCH] chore(html): allow serving from a subfolder (#9653) --- packages/playwright-core/src/web/htmlReport/htmlReport.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/playwright-core/src/web/htmlReport/htmlReport.tsx b/packages/playwright-core/src/web/htmlReport/htmlReport.tsx index 4cfabf5c81..8ee1175201 100644 --- a/packages/playwright-core/src/web/htmlReport/htmlReport.tsx +++ b/packages/playwright-core/src/web/htmlReport/htmlReport.tsx @@ -89,7 +89,7 @@ const TestFileSummaryView: React.FC<{ {file.fileName} }> - {file.tests.map((test, i) => + {file.tests.map((test, i) =>
{msToString(test.duration)} {statusIcon(test.outcome)} @@ -113,7 +113,7 @@ const TestCaseView: React.FC<{ const fileId = testId.split('-')[0]; if (!fileId) return; - const result = await fetch(`/data/${fileId}.json`, { cache: 'no-cache' }); + const result = await fetch(`data/${fileId}.json`, { cache: 'no-cache' }); const file = await result.json() as TestFile; for (const t of file.tests) { if (t.testId === testId) {