mirror of
https://github.com/DeNNiiInc/Web-Page-Performance-Test.git
synced 2026-04-17 20:05:58 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user