@@ -283,30 +283,14 @@ describe("Notebook", () => {
283
283
await textArea . sendKeys ( Key . RETURN ) ;
284
284
await DBConnection . writeSQL ( driver , query3 ) ;
285
285
await DBNotebooks . setMouseCursorAt ( driver , query2 ) ;
286
-
287
- let execCaretBtn = await DBConnection . getToolbarButton ( driver , execCaret ) ;
288
- await execCaretBtn ?. click ( ) ;
289
- await driver . wait ( async ( ) => {
290
- await execCaretBtn ?. click ( ) ;
291
-
292
- return DBConnection . getResultColumnName ( driver , "address_id" ) !== undefined ;
293
- } , 3000 , "No new results block was displayed" ) ;
294
-
286
+ await DBConnection . clickToolbarButton ( driver , execCaret ) ;
287
+ expect ( await DBConnection . getResultColumnName ( driver , "address_id" ) ) . toBeDefined ( ) ;
295
288
await DBNotebooks . setMouseCursorAt ( driver , query1 ) ;
296
- execCaretBtn = await DBConnection . getToolbarButton ( driver , execCaret ) ;
297
- await driver . wait ( new Condition ( "" , async ( ) => {
298
- await execCaretBtn ?. click ( ) ;
299
-
300
- return await DBConnection . getResultColumnName ( driver , "actor_id" ) !== undefined ;
301
- } ) , explicitWait , "actor_id column was not found" ) ;
302
-
289
+ await DBConnection . clickToolbarButton ( driver , execCaret ) ;
290
+ expect ( await DBConnection . getResultColumnName ( driver , "actor_id" ) ) . toBeDefined ( ) ;
303
291
await DBNotebooks . setMouseCursorAt ( driver , query3 ) ;
304
- execCaretBtn = await DBConnection . getToolbarButton ( driver , execCaret ) ;
305
- await driver . wait ( new Condition ( "" , async ( ) => {
306
- await execCaretBtn ?. click ( ) ;
307
-
308
- return await DBConnection . getResultColumnName ( driver , "category_id" ) !== undefined ;
309
- } ) , explicitWait , "category_id column was not found" ) ;
292
+ await DBConnection . clickToolbarButton ( driver , execCaret ) ;
293
+ expect ( await DBConnection . getResultColumnName ( driver , "category_id" ) ) . toBeDefined ( ) ;
310
294
} catch ( e ) {
311
295
testFailed = true ;
312
296
throw e ;
0 commit comments