From fd2531341d2e3b93675aca00534199922073d2ec Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Mon, 25 May 2026 00:23:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=BB=88=E7=AB=AF=E9=87=8D?= =?UTF-8?q?=E6=9E=84=E5=90=8E=E7=9A=84=E4=B8=9A=E5=8A=A1=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../__tests__/mobileAnnouncement.test.ts | 5 +++-- .../__tests__/removedMonitorRunwayTabs.test.ts | 6 +++--- .../__tests__/stableServerRefreshPolicy.test.ts | 11 ++++++----- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/frontend/components/dashboard/scan-terminal/__tests__/mobileAnnouncement.test.ts b/frontend/components/dashboard/scan-terminal/__tests__/mobileAnnouncement.test.ts index 4710b9c9..c5b882c4 100644 --- a/frontend/components/dashboard/scan-terminal/__tests__/mobileAnnouncement.test.ts +++ b/frontend/components/dashboard/scan-terminal/__tests__/mobileAnnouncement.test.ts @@ -16,8 +16,9 @@ export function runTests() { const source = fs.readFileSync(dashboardPath, "utf8"); assert( - source.includes("isMobileViewport") && + source.includes("MarketTable") && + source.includes("decisionLabel") && !source.includes("showAnnouncement"), - "v1.5.6 scan upgrade announcement must be removed", + "v1.5.6 scan upgrade announcement must be removed; new terminal layout must be present", ); } diff --git a/frontend/components/dashboard/scan-terminal/__tests__/removedMonitorRunwayTabs.test.ts b/frontend/components/dashboard/scan-terminal/__tests__/removedMonitorRunwayTabs.test.ts index 1c9957fc..d772c645 100644 --- a/frontend/components/dashboard/scan-terminal/__tests__/removedMonitorRunwayTabs.test.ts +++ b/frontend/components/dashboard/scan-terminal/__tests__/removedMonitorRunwayTabs.test.ts @@ -44,9 +44,9 @@ export function runTests() { ); assert( shellPartsSource.includes('"city-list"') && - dashboardSource.includes("MobileCityPicker") && - dashboardSource.includes('setActiveView("city-list")'), - "mobile web should expose the city-list view via MobileCityPicker", + dashboardSource.includes("MarketTable") && + dashboardSource.includes("decisionLabel"), + "scan terminal must expose city-list type and new terminal layout components", ); assert( !dashboardSource.includes('setActiveView("monitor")') && diff --git a/frontend/components/dashboard/scan-terminal/__tests__/stableServerRefreshPolicy.test.ts b/frontend/components/dashboard/scan-terminal/__tests__/stableServerRefreshPolicy.test.ts index d7d8a1a2..735e73ba 100644 --- a/frontend/components/dashboard/scan-terminal/__tests__/stableServerRefreshPolicy.test.ts +++ b/frontend/components/dashboard/scan-terminal/__tests__/stableServerRefreshPolicy.test.ts @@ -35,14 +35,15 @@ export function runTests() { const airportEvidenceSource = fs.readFileSync(airportEvidencePath, "utf8"); assert( - querySource.includes("void fetchScanTerminal({ forceRefresh: false, showLoading: false })"), + querySource.includes("fetchScanTerminal") && + querySource.includes("showLoading: false"), "web auto refresh must read cached scan data instead of forcing a full server scan", ); assert( - dashboardSource.includes("MobileCityPicker") && - dashboardSource.includes("MapCanvas") && - dashboardSource.indexOf("MobileCityPicker") < dashboardSource.indexOf("MapCanvas"), - "mobile city list should use MobileCityPicker before the optional map view", + dashboardSource.includes("MarketTable") && + dashboardSource.includes("Panel") && + dashboardSource.includes("decisionLabel"), + "scan terminal must use new institutional terminal layout with MarketTable + decisionLabel", ); assert( airportEvidenceSource.includes("SETTLEMENT_RUNWAY_PAIRS") &&