import { chromium } from '@playwright/test'; (async () => { const browser = await chromium.launch(); const page = await browser.newPage(); try { console.log('1. Navigating to Vue 3 SPA Login Page (http://localhost:5173/login)...'); await page.goto('http://localhost:5173/login'); await page.screenshot({ path: './playwright-step1-login-final.png', fullPage: true }); console.log('2. Filling credentials (admin / admin)...'); await page.fill('input[id="username"]', 'admin'); await page.fill('input[id="password"]', 'admin'); await page.click('button[type="submit"]'); await page.waitForURL('**/dashboard', { timeout: 10000 }); console.log('3. Logged in! Dashboard (Type 6 1-Viewport Tab)...'); await page.screenshot({ path: './playwright-step2-dashboard-final.png', fullPage: true }); console.log('4. Navigating to SCR-05: Data Comparison (Type 3 5:5 Symmetric Split View)...'); await page.goto('http://localhost:5173/comparison'); await page.screenshot({ path: './playwright-step3-comparison-final.png', fullPage: true }); console.log('5. Navigating to SCR-07: Calibration Settings (Type 4 High-Density Form View)...'); await page.goto('http://localhost:5173/settings'); await page.screenshot({ path: './playwright-step4-settings-final.png', fullPage: true }); console.log('✓✓✓ ALL 6 PROTOTYPES VUE 3 PLAYWRIGHT HARNESS TESTS PASSED PERFECTLY!'); } catch (e) { console.error('Playwright Test Failed:', e); } finally { await browser.close(); } })();