删掉设计 Agent 用例里传给 App 的无效 agentDockVisible prop
- apps/ai-game-creator-shell/tests/appSurface/design-agent.suite.ts 四处 React.createElement(App, {...}) 不再传 agentDockVisible
- agentDockVisible 是 ProjectDevelopmentView(工作台)的 prop,AppProps 里没有它,传了也不会生效;它替换掉的旧 orchestrationMode/projectSupervisorOnly 曾经是真实的 App prop,留着会让人误以为这里会隐藏 Agent dock
This commit is contained in:
@@ -109,7 +109,6 @@ export function registerDesignAgentSurfaceTests() {
|
||||
render(
|
||||
React.createElement(App, {
|
||||
initialProjectPath: harness.projectPath,
|
||||
agentDockVisible: false,
|
||||
planningStartMode: true,
|
||||
}),
|
||||
);
|
||||
@@ -155,7 +154,6 @@ export function registerDesignAgentSurfaceTests() {
|
||||
render(
|
||||
React.createElement(App, {
|
||||
initialProjectPath: harness.projectPath,
|
||||
agentDockVisible: false,
|
||||
planningStartMode: true,
|
||||
}),
|
||||
);
|
||||
@@ -194,7 +192,6 @@ export function registerDesignAgentSurfaceTests() {
|
||||
render(
|
||||
React.createElement(App, {
|
||||
initialProjectPath: harness.projectPath,
|
||||
agentDockVisible: false,
|
||||
planningStartMode: true,
|
||||
}),
|
||||
);
|
||||
@@ -243,7 +240,6 @@ export function registerDesignAgentSurfaceTests() {
|
||||
render(
|
||||
React.createElement(App, {
|
||||
initialProjectPath: harness.projectPath,
|
||||
agentDockVisible: false,
|
||||
planningStartMode: true,
|
||||
}),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user