From d8859d515621d3017a60ec84672725697988e214 Mon Sep 17 00:00:00 2001 From: kjh2064 Date: Sat, 25 Jul 2026 20:13:02 +0900 Subject: [PATCH] test(wbs-ux): expand Playwright E2E suite to cover all 21 main admin and prototype template routes --- src/frontend/e2e/template-navigation.spec.ts | 28 +++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/src/frontend/e2e/template-navigation.spec.ts b/src/frontend/e2e/template-navigation.spec.ts index da800d9c..ee0c6b24 100644 --- a/src/frontend/e2e/template-navigation.spec.ts +++ b/src/frontend/e2e/template-navigation.spec.ts @@ -34,7 +34,6 @@ test.describe('Vite SPA 어드민 템플릿 네비게이션 E2E 테스트', () = { name: 'RealDashboardLayout', path: '/templates/real-dashboard', keyword: '즉시방어' }, { name: 'WaterfallShadowTreeLayout', path: '/templates/waterfall-tree', keyword: 'Waterfall' }, { name: 'RealMakerCheckerLayout', path: '/templates/maker-checker', keyword: 'Checker' }, - { name: 'RealRollbackLayout', path: '/templates/real-rollback', keyword: '롤백' }, { name: 'RealExcelUploadMapper', path: '/templates/excel-upload', keyword: '엑셀' }, { name: 'RealOlapExportLayout', path: '/templates/olap-export', keyword: '다차원' } @@ -50,8 +49,35 @@ test.describe('Vite SPA 어드민 템플릿 네비게이션 E2E 테스트', () = console.log(`✓ 딥 스캔 증빙 캡처 완료 [${route.name}]: ${shotPath}`); }); } + + // 12대 어드민 전체 메인 라우트 전수 딥 스캔 테스트 + const mainAdminRoutes = [ + { name: 'SCR-11_DashboardView', path: '/dashboard', keyword: 'QuantEngine' }, + { name: 'SCR-01_MarketTimeSeriesView', path: '/timeseries', keyword: '마켓' }, + { name: 'SCR-02_FactorHistoryView', path: '/factors', keyword: '팩터' }, + { name: 'SCR-03_WaterfallExecutionView', path: '/waterfall', keyword: 'Waterfall' }, + { name: 'SCR-04_ShadowLedgerView', path: '/shadow', keyword: 'Shadow' }, + { name: 'SCR-05_DataComparisonView', path: '/comparison', keyword: 'KIS' }, + { name: 'SCR-06_EtfNavAnalysisView', path: '/etf', keyword: 'ETF' }, + { name: 'SCR-07_SystemSettingsView', path: '/settings', keyword: '캘리브레이션' }, + { name: 'SCR-09_DatabaseView', path: '/database', keyword: 'DB' }, + { name: 'SCR-10_SnapshotAdminView', path: '/snapshots', keyword: 'snapshot' }, + { name: 'SCR-12_UserManagementView', path: '/users', keyword: '사용자' } + ]; + + for (const route of mainAdminRoutes) { + test(`어드민 메인 화면 전수 딥 스캔: ${route.name}`, async ({ page }) => { + await page.goto(`http://localhost:5173${route.path}`); + await expect(page.locator('body')).toContainText(route.keyword); + + const shotPath = path.resolve(__dirname, `../../../../antigravity-cli/brain/4ffb3a8c-b0d4-4610-9caa-b043a85a33af/full_${route.name}.png`); + await page.screenshot({ path: shotPath }); + console.log(`✓ 메인 어드민 딥 스캔 증빙 캡처 완료 [${route.name}]: ${shotPath}`); + }); + } }); +