@@ -240,10 +240,12 @@ describe("GUI Test", () => {
240
240
} ) ;
241
241
242
242
describe ( "Agent with tools" , ( ) => {
243
- it ( "should render tool call" , async ( ) => {
243
+ beforeEach ( async ( ) => {
244
244
await GUIActions . selectModelFromDropdown ( view , "TOOL MOCK LLM" ) ;
245
245
await GUIActions . selectModeFromDropdown ( view , "Agent" ) ;
246
+ } ) ;
246
247
248
+ it ( "should render tool call" , async ( ) => {
247
249
const [ messageInput ] = await GUISelectors . getMessageInputFields ( view ) ;
248
250
await messageInput . sendKeys ( "Hello" ) ;
249
251
await messageInput . sendKeys ( Key . ENTER ) ;
@@ -261,10 +263,6 @@ describe("GUI Test", () => {
261
263
it ( "should call tool after approval" , async ( ) => {
262
264
await GUIActions . toggleToolPolicy ( view , "builtin_view_diff" , 2 ) ;
263
265
264
- await TestUtils . waitForSuccess ( ( ) =>
265
- GUIActions . selectModelFromDropdown ( view , "TOOL MOCK LLM" ) ,
266
- ) ;
267
-
268
266
const [ messageInput ] = await GUISelectors . getMessageInputFields ( view ) ;
269
267
await messageInput . sendKeys ( "Hello" ) ;
270
268
await messageInput . sendKeys ( Key . ENTER ) ;
@@ -286,10 +284,6 @@ describe("GUI Test", () => {
286
284
it ( "should cancel tool" , async ( ) => {
287
285
await GUIActions . toggleToolPolicy ( view , "builtin_view_diff" , 2 ) ;
288
286
289
- await TestUtils . waitForSuccess ( ( ) =>
290
- GUIActions . selectModelFromDropdown ( view , "TOOL MOCK LLM" ) ,
291
- ) ;
292
-
293
287
const [ messageInput ] = await GUISelectors . getMessageInputFields ( view ) ;
294
288
await messageInput . sendKeys ( "Hello" ) ;
295
289
await messageInput . sendKeys ( Key . ENTER ) ;
0 commit comments