修复 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:
+2
-2
@@ -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")') &&
|
||||
|
||||
+3
-3
@@ -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") &&
|
||||
|
||||
Reference in New Issue
Block a user