更新终端重构后的业务状态测试
This commit is contained in:
@@ -16,8 +16,9 @@ export function runTests() {
|
|||||||
const source = fs.readFileSync(dashboardPath, "utf8");
|
const source = fs.readFileSync(dashboardPath, "utf8");
|
||||||
|
|
||||||
assert(
|
assert(
|
||||||
source.includes("isMobileViewport") &&
|
source.includes("MarketTable") &&
|
||||||
|
source.includes("decisionLabel") &&
|
||||||
!source.includes("showAnnouncement"),
|
!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",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-3
@@ -44,9 +44,9 @@ export function runTests() {
|
|||||||
);
|
);
|
||||||
assert(
|
assert(
|
||||||
shellPartsSource.includes('"city-list"') &&
|
shellPartsSource.includes('"city-list"') &&
|
||||||
dashboardSource.includes("MobileCityPicker") &&
|
dashboardSource.includes("MarketTable") &&
|
||||||
dashboardSource.includes('setActiveView("city-list")'),
|
dashboardSource.includes("decisionLabel"),
|
||||||
"mobile web should expose the city-list view via MobileCityPicker",
|
"scan terminal must expose city-list type and new terminal layout components",
|
||||||
);
|
);
|
||||||
assert(
|
assert(
|
||||||
!dashboardSource.includes('setActiveView("monitor")') &&
|
!dashboardSource.includes('setActiveView("monitor")') &&
|
||||||
|
|||||||
+6
-5
@@ -35,14 +35,15 @@ export function runTests() {
|
|||||||
const airportEvidenceSource = fs.readFileSync(airportEvidencePath, "utf8");
|
const airportEvidenceSource = fs.readFileSync(airportEvidencePath, "utf8");
|
||||||
|
|
||||||
assert(
|
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",
|
"web auto refresh must read cached scan data instead of forcing a full server scan",
|
||||||
);
|
);
|
||||||
assert(
|
assert(
|
||||||
dashboardSource.includes("MobileCityPicker") &&
|
dashboardSource.includes("MarketTable") &&
|
||||||
dashboardSource.includes("MapCanvas") &&
|
dashboardSource.includes("Panel") &&
|
||||||
dashboardSource.indexOf("MobileCityPicker") < dashboardSource.indexOf("MapCanvas"),
|
dashboardSource.includes("decisionLabel"),
|
||||||
"mobile city list should use MobileCityPicker before the optional map view",
|
"scan terminal must use new institutional terminal layout with MarketTable + decisionLabel",
|
||||||
);
|
);
|
||||||
assert(
|
assert(
|
||||||
airportEvidenceSource.includes("SETTLEMENT_RUNWAY_PAIRS") &&
|
airportEvidenceSource.includes("SETTLEMENT_RUNWAY_PAIRS") &&
|
||||||
|
|||||||
Reference in New Issue
Block a user