Files
QuantEngineByItz/playwright-6-prototypes-harness.mjs
T
kjh2064 2fe4cb288f
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Failing after 13s
Validators (Pushes and Pull Requests) / validate-core (push) Failing after 19s
feat(quant): WBS-FE-BE-100 complete Vue3 Vite8 SPA & .NET10 FastEndpoints refactoring
2026-07-22 15:14:28 +09:00

36 lines
1.5 KiB
JavaScript

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();
}
})();