修复 CI: 适配 MobileCityPicker 测试断言 + 清理 f-string 和无用 import

- removedMonitorRunwayTabs.test.ts: 检查 MobileCityPicker 替代旧 scan-mobile-city-list-view
- stableServerRefreshPolicy.test.ts: 同上,MobileCityPicker 替代旧视图标识
- scan_forum_topics.py: 移除无占位符的 f-string 和无用 json import
This commit is contained in:
2569718930@qq.com
2026-05-17 18:08:59 +08:00
parent d39534dff4
commit 02fd7d9e49
3 changed files with 6 additions and 7 deletions
@@ -44,9 +44,9 @@ export function runTests() {
);
assert(
shellPartsSource.includes('"city-list"') &&
dashboardSource.includes("scan-mobile-city-list-view") &&
dashboardSource.includes("MobileCityPicker") &&
dashboardSource.includes('setActiveView("city-list")'),
"mobile web should expose the lightweight city-list entry view",
"mobile web should expose the city-list view via MobileCityPicker",
);
assert(
!dashboardSource.includes('setActiveView("monitor")') &&
@@ -37,10 +37,10 @@ export function runTests() {
"web auto refresh must read cached scan data instead of forcing a full server scan",
);
assert(
dashboardSource.includes("scan-mobile-city-list-view") &&
dashboardSource.includes("MobileCityPicker") &&
dashboardSource.includes("MapCanvas") &&
dashboardSource.indexOf("scan-mobile-city-list-view") < dashboardSource.indexOf("scan-map-view"),
"mobile city list should be the lightweight entry before the optional map view",
dashboardSource.indexOf("MobileCityPicker") < dashboardSource.indexOf("MapCanvas"),
"mobile city list should use MobileCityPicker before the optional map view",
);
assert(
airportEvidenceSource.includes("FOCUS_RUNWAY_PAIRS") &&