fix: attempt pass GUI.test.ts
This commit is contained in:
parent
d1b7b2df59
commit
f7733a6572
2 changed files with 2 additions and 7 deletions
|
|
@ -287,9 +287,6 @@ describe("GUI Test", () => {
|
|||
}).timeout(DEFAULT_TIMEOUT.MD);
|
||||
|
||||
it("should render tool call", async () => {
|
||||
// all tool's toolSettings here defaults to ?
|
||||
// await GUIActions.toggleToolPolicy(view, "view_diff", 0);
|
||||
|
||||
const [messageInput] = await GUISelectors.getMessageInputFields(view);
|
||||
await messageInput.sendKeys("Hello");
|
||||
await messageInput.sendKeys(Key.ENTER);
|
||||
|
|
@ -307,8 +304,7 @@ describe("GUI Test", () => {
|
|||
}).timeout(DEFAULT_TIMEOUT.MD * 100);
|
||||
|
||||
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");
|
||||
|
|
@ -329,7 +325,6 @@ describe("GUI Test", () => {
|
|||
}).timeout(DEFAULT_TIMEOUT.XL);
|
||||
|
||||
it("should cancel tool", async () => {
|
||||
// all tool's toolSettings here defaults to ?
|
||||
await GUIActions.toggleToolPolicy(view, "view_diff", 2);
|
||||
|
||||
const [messageInput] = await GUISelectors.getMessageInputFields(view);
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ export function Chat() {
|
|||
}, []);
|
||||
|
||||
const availableTools = useAppSelector((state) => state.config.config.tools);
|
||||
// 标记是否已初始化
|
||||
// Mark if initialized
|
||||
const [toolSettingsInitialized, setToolSettingsInitialized] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue