File tree Expand file tree Collapse file tree
test/smoke/src/areas/debug Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ describe('Debug', () => {
115115 } ) ;
116116
117117 it ( 'debug console' , async function ( ) {
118- const result = await app . workbench . debug . console ( '2 + 2 \n' , 'number' ) ;
118+ const result = await app . workbench . debug . console ( '2 + 2 \n' ) ;
119119 assert . equal ( result , '4' ) ;
120120 } ) ;
121121
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ const TOOLBAR_HIDDEN = `.debug-actions-widget.builder-hidden`;
2424const STACK_FRAME = `${ VIEWLET } .monaco-tree-row .stack-frame` ;
2525const VARIABLE = `${ VIEWLET } .debug-variables .monaco-tree-row .expression` ;
2626const CONSOLE_OUTPUT = `.repl .output.expression` ;
27- const CONSOLE_INPUT_OUTPUT = `.repl .input-output-pair .output.expression` ;
27+ const CONSOLE_INPUT_OUTPUT = `.repl .input-output-pair .output.expression .value ` ;
2828const SCOPE = `${ VIEWLET } .debug-variables .scope` ;
2929
3030const REPL_FOCUSED = '.repl-input-wrapper .monaco-editor.focused' ;
@@ -103,11 +103,11 @@ export class Debug extends Viewlet {
103103 await this . spectron . workbench . waitForOpen ( name ) ;
104104 }
105105
106- async console ( text : string , type : string ) : Promise < string > {
106+ async console ( text : string ) : Promise < string > {
107107 await this . spectron . workbench . quickopen . runCommand ( 'Debug: Focus Debug Console' ) ;
108108 await this . spectron . client . waitForElement ( REPL_FOCUSED ) ;
109109 await this . spectron . client . type ( text ) ;
110- await this . spectron . client . waitForElement ( CONSOLE_INPUT_OUTPUT + ` . ${ type } ` ) ;
110+ await this . spectron . client . waitForElement ( CONSOLE_INPUT_OUTPUT ) ;
111111
112112 const result = await this . getConsoleOutput ( ) ;
113113 return result [ result . length - 1 ] || '' ;
You can’t perform that action at this time.
0 commit comments