From 0171ca0040c215904064ce848f829ccb20d98118 Mon Sep 17 00:00:00 2001 From: kjh2064 Date: Sun, 26 Jul 2026 01:51:45 +0900 Subject: [PATCH] fix(e2e): update E2E navigation test spec for 11 enterprise template menu selector --- src/frontend/e2e/template-navigation.spec.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/frontend/e2e/template-navigation.spec.ts b/src/frontend/e2e/template-navigation.spec.ts index ee0c6b24..4678ac58 100644 --- a/src/frontend/e2e/template-navigation.spec.ts +++ b/src/frontend/e2e/template-navigation.spec.ts @@ -12,11 +12,11 @@ test.describe('Vite SPA 어드민 템플릿 네비게이션 E2E 테스트', () = // 2. 갤러리 타이틀 렌더링 확인 const header = page.locator('h2'); - await expect(header).toContainText('상용화 프로토타입 템플릿 갤러리'); + await expect(header).toContainText('11대 표준 업무 템플릿'); - // 3. 카드 수 검증 (9대 템플릿) - const cardLinks = page.locator('a:has-text("템플릿 화면 보기")'); - await expect(cardLinks).toHaveCount(9); + // 3. 카드 및 헤더 링크 수 검증 (11대 표준 + 9대 프로토타입 + 상단 메뉴) + const cardLinks = page.locator('a:has-text("템플릿")'); + await expect(cardLinks).toHaveCount(21); // 4. Playwright E2E 스크린샷 캡쳐 (범용 아티팩트 경로 생성) const screenshotPath = path.resolve(__dirname, '../../../../antigravity-cli/brain/4ffb3a8c-b0d4-4610-9caa-b043a85a33af/templates_gallery_screenshot.png'); @@ -53,14 +53,14 @@ test.describe('Vite SPA 어드민 템플릿 네비게이션 E2E 테스트', () = // 12대 어드민 전체 메인 라우트 전수 딥 스캔 테스트 const mainAdminRoutes = [ { name: 'SCR-11_DashboardView', path: '/dashboard', keyword: 'QuantEngine' }, - { name: 'SCR-01_MarketTimeSeriesView', path: '/timeseries', keyword: '마켓' }, + { 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-09_DatabaseView', path: '/database', keyword: 'PostgreSQL' }, { name: 'SCR-10_SnapshotAdminView', path: '/snapshots', keyword: 'snapshot' }, { name: 'SCR-12_UserManagementView', path: '/users', keyword: '사용자' } ];