Skip to content

Commit aa6936c

Browse files
committed
fix smoke test for debug console
1 parent 73ae855 commit aa6936c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

test/smoke/src/areas/debug/debug.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

test/smoke/src/areas/debug/debug.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const TOOLBAR_HIDDEN = `.debug-actions-widget.builder-hidden`;
2424
const STACK_FRAME = `${VIEWLET} .monaco-tree-row .stack-frame`;
2525
const VARIABLE = `${VIEWLET} .debug-variables .monaco-tree-row .expression`;
2626
const 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`;
2828
const SCOPE = `${VIEWLET} .debug-variables .scope`;
2929

3030
const 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] || '';

0 commit comments

Comments
 (0)