Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore(html): allow serving from a subfolder (#9653)
Pavel Feldmanb3b5497578f3
diff --git a/packages/playwright-core/src/web/htmlReport/htmlReport.tsx b/packages/playwright-core/src/web/htmlReport/htmlReport.tsxindex 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}<StatsView stats={file.stats}></StatsView></span>}>- {file.tests.map((test, i) => <Link key={`test-${i}`} href={`/?testId=${test.testId}`}>+ {file.tests.map((test, i) => <Link key={`test-${i}`} href={`?testId=${test.testId}`}><div className={'test-summary outcome-' + test.outcome}><span style={{ float: 'right' }}>{msToString(test.duration)}</span>{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) {