推进 INI 面板 shell handoff checklist
This commit is contained in:
@@ -81,6 +81,7 @@
|
||||
!launchApi?.getShellSessionHandoffSnapshot ||
|
||||
!launchApi?.getShellSessionHandoffRenderState ||
|
||||
!launchApi?.getShellSessionHandoffActionPlan ||
|
||||
!launchApi?.getShellSessionHandoffChecklist ||
|
||||
!launchApi?.getLauncherLinks ||
|
||||
!launchApi?.getControlPageApiMethods
|
||||
) {
|
||||
@@ -120,7 +121,7 @@
|
||||
);
|
||||
assertEqual(
|
||||
launchApiManifest.methods.join(","),
|
||||
"isSupportedLaunchApiManifest,getLaunchApiSchema,getLaunchApiManifest,getShellIntegrationSchema,getShellIntegrationManifest,getShellIntegrationReadiness,getShellSessionHandoffSummarySchema,getShellSessionHandoffSummary,isSupportedShellSessionHandoffSummary,getShellSessionHandoffCompatibilityReport,getShellSessionHandoffDisplayViewModel,getShellSessionHandoffSnapshot,getShellSessionHandoffRenderState,getShellSessionHandoffActionPlan,getLauncherLinks,getControlPageApiMethods",
|
||||
"isSupportedLaunchApiManifest,getLaunchApiSchema,getLaunchApiManifest,getShellIntegrationSchema,getShellIntegrationManifest,getShellIntegrationReadiness,getShellSessionHandoffSummarySchema,getShellSessionHandoffSummary,isSupportedShellSessionHandoffSummary,getShellSessionHandoffCompatibilityReport,getShellSessionHandoffDisplayViewModel,getShellSessionHandoffSnapshot,getShellSessionHandoffRenderState,getShellSessionHandoffActionPlan,getShellSessionHandoffChecklist,getLauncherLinks,getControlPageApiMethods",
|
||||
"launch API manifest methods",
|
||||
);
|
||||
const shellIntegrationSchema = launchApi.getShellIntegrationSchema();
|
||||
@@ -133,6 +134,7 @@
|
||||
const shellSessionHandoffSnapshot = launchApi.getShellSessionHandoffSnapshot();
|
||||
const shellSessionHandoffRenderState = launchApi.getShellSessionHandoffRenderState();
|
||||
const shellSessionHandoffActionPlan = launchApi.getShellSessionHandoffActionPlan();
|
||||
const shellSessionHandoffChecklist = launchApi.getShellSessionHandoffChecklist();
|
||||
assertEqual(
|
||||
shellIntegrationSchema.manifestVersion,
|
||||
1,
|
||||
@@ -263,6 +265,26 @@
|
||||
"readControlPageStatus",
|
||||
"shell session handoff action-plan read method",
|
||||
);
|
||||
assertEqual(
|
||||
shellSessionHandoffChecklist.checklistVersion,
|
||||
1,
|
||||
"shell session handoff checklist version",
|
||||
);
|
||||
assertEqual(
|
||||
shellSessionHandoffChecklist.ready,
|
||||
true,
|
||||
"shell session handoff checklist readiness",
|
||||
);
|
||||
assertEqual(
|
||||
shellSessionHandoffChecklist.checks.map(({ status }) => status).join(","),
|
||||
"pass,pass,pass,pass,pass",
|
||||
"shell session handoff checklist checks",
|
||||
);
|
||||
assertEqual(
|
||||
shellSessionHandoffChecklist.nextStepIds.join(","),
|
||||
"open-control-page,read-readonly-status",
|
||||
"shell session handoff checklist next step ids",
|
||||
);
|
||||
assertEqual(
|
||||
JSON.stringify(shellSessionHandoffSnapshot.readiness),
|
||||
JSON.stringify(shellIntegrationReadiness),
|
||||
@@ -288,6 +310,11 @@
|
||||
JSON.stringify(shellSessionHandoffRenderState.rows),
|
||||
"shell session handoff action-plan rows",
|
||||
);
|
||||
assertEqual(
|
||||
JSON.stringify(shellSessionHandoffChecklist.displayRows),
|
||||
JSON.stringify(shellSessionHandoffRenderState.rows),
|
||||
"shell session handoff checklist rows",
|
||||
);
|
||||
assertEqual(
|
||||
launchDoc.querySelector("[data-handoff-status]").textContent,
|
||||
"Ready: No blocking reasons",
|
||||
|
||||
@@ -71,7 +71,8 @@ TOOL_TABLE = browser-shell-tool.tbl
|
||||
!launchApi?.getShellSessionHandoffDisplayViewModel ||
|
||||
!launchApi?.getShellSessionHandoffSnapshot ||
|
||||
!launchApi?.getShellSessionHandoffRenderState ||
|
||||
!launchApi?.getShellSessionHandoffActionPlan
|
||||
!launchApi?.getShellSessionHandoffActionPlan ||
|
||||
!launchApi?.getShellSessionHandoffChecklist
|
||||
) {
|
||||
throw new Error("launch API namespace did not expose shell integration helpers");
|
||||
}
|
||||
@@ -85,6 +86,7 @@ TOOL_TABLE = browser-shell-tool.tbl
|
||||
const handoffSnapshot = launchApi.getShellSessionHandoffSnapshot();
|
||||
const handoffRenderState = launchApi.getShellSessionHandoffRenderState();
|
||||
const handoffActionPlan = launchApi.getShellSessionHandoffActionPlan();
|
||||
const handoffChecklist = launchApi.getShellSessionHandoffChecklist();
|
||||
assertEqual(handoffSummarySchema.summaryVersion, 1, "shell handoff summary schema version");
|
||||
assertEqual(
|
||||
launchApi.isSupportedShellSessionHandoffSummary(handoffSummary),
|
||||
@@ -108,6 +110,18 @@ TOOL_TABLE = browser-shell-tool.tbl
|
||||
"open-control-page,read-readonly-status",
|
||||
"shell handoff action-plan next steps",
|
||||
);
|
||||
assertEqual(handoffChecklist.ready, true, "shell handoff checklist readiness");
|
||||
assertEqual(handoffChecklist.checks.length, 5, "shell handoff checklist checks");
|
||||
assertEqual(
|
||||
handoffChecklist.checks.map(({ status }) => status).join(","),
|
||||
"pass,pass,pass,pass,pass",
|
||||
"shell handoff checklist check status",
|
||||
);
|
||||
assertEqual(
|
||||
handoffChecklist.nextStepIds.join(","),
|
||||
"open-control-page,read-readonly-status",
|
||||
"shell handoff checklist next steps",
|
||||
);
|
||||
assertEqual(readiness.phase, "ready", "shell integration readiness phase");
|
||||
assertEqual(readiness.ready, true, "shell integration readiness");
|
||||
assertEqual(readiness.missing.join(","), "", "shell integration readiness missing checks");
|
||||
|
||||
Reference in New Issue
Block a user