fix: try to pass GUI.test.ts

This commit is contained in:
QiuYang Shen 2025-07-23 12:44:07 +08:00
parent 92b9b4828b
commit 8ad03dc4e5

View file

@ -288,7 +288,7 @@ describe("GUI Test", () => {
it("should render tool call", async () => {
// all tool's toolSettings here defaults to ?
await GUIActions.toggleToolPolicy(view, "view_diff", 1);
await GUIActions.toggleToolPolicy(view, "view_diff", 2);
const [messageInput] = await GUISelectors.getMessageInputFields(view);
await messageInput.sendKeys("Hello");
@ -308,7 +308,7 @@ describe("GUI Test", () => {
it("should call tool after approval", async () => {
// all tool's toolSettings here defaults to ?
await GUIActions.toggleToolPolicy(view, "view_diff", 1);
await GUIActions.toggleToolPolicy(view, "view_diff", 2);
const [messageInput] = await GUISelectors.getMessageInputFields(view);
await messageInput.sendKeys("Hello");
@ -330,7 +330,7 @@ describe("GUI Test", () => {
it("should cancel tool", async () => {
// all tool's toolSettings here defaults to ?
await GUIActions.toggleToolPolicy(view, "view_diff", 1);
// await GUIActions.toggleToolPolicy(view, "view_diff", 1);
const [messageInput] = await GUISelectors.getMessageInputFields(view);
await messageInput.sendKeys("Hello");