推进 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",
|
||||
|
||||
Reference in New Issue
Block a user