mirror of
https://github.com/DeNNiiInc/Web-Page-Performance-Test.git
synced 2026-04-17 20:05:58 +00:00
Fix device selection default mismatch + Integrate Waterfall & Comparison
Bug Fix: - Backend was defaulting to mobile (isMobile ?? true) - Frontend was defaulting to desktop - Changed runner.js default to false (desktop) to match frontend Feature Integration: - Added Waterfall button to each history item - Added comparison checkboxes to history for easy test selection - Auto-limit to 2 tests for comparison - Comparison controls appear dynamically when tests selected - Auto-load comparison when URL params present
This commit is contained in:
@@ -58,7 +58,7 @@ async function _executeTest(url, options) {
|
||||
const chromeLauncher = await import('chrome-launcher');
|
||||
const { v4: uuidv4 } = await import('uuid');
|
||||
|
||||
const isMobile = options.isMobile ?? true; // Default to mobile
|
||||
const isMobile = options.isMobile ?? false; // Default to desktop (matches frontend)
|
||||
const reportDir = path.join(__dirname, '..', 'reports');
|
||||
|
||||
// Ensure reports directory exists
|
||||
|
||||
Reference in New Issue
Block a user