Feature Complete: WebPageTest Clone

- Implemented Test Launcher UI (index.html)
- Added 'View Full Report' functionality using Lighthouse HTML reports
- Configured runner.js for robust Headless Chrome execution on Linux
- Updated styles for form and results dashboard
This commit is contained in:
2025-12-27 22:21:17 +11:00
parent 264325112e
commit f253b8678f
4 changed files with 460 additions and 12 deletions

View File

@@ -20,7 +20,11 @@ async function runTest(url, options = {}) {
}
// Launch Chrome
const chrome = await chromeLauncher.launch({ chromeFlags: ['--headless'] });
const chromePath = require('puppeteer').executablePath();
const chrome = await chromeLauncher.launch({
chromePath,
chromeFlags: ['--headless', '--no-sandbox', '--disable-gpu', '--disable-dev-shm-usage']
});
// Lighthouse Config
const port = chrome.port;