[🚫 Bug] Terminal view execute command not working
Describe the bug
Terminal view execute command not working
when execute command then Terminal only create new line and command not show
Steps to reproduce
Testcase: it("Terminal works", async function () {
this.timeout(100000);
assert.ok(await terminalView.isDisplayed());
console.log("terminalView", await terminalView.getCurrentChannel());
await waitTime(2000);
await terminalView.executeCommand("ls");
// const text = await terminalView.getText();
// console.log("text", text);
await waitTime(10000);
});
Logs
Test no error
Operating System
Window 10
Visual Studio Code
1.89.1
vscode-extension-tester
8.2.0
NodeJS
20.14.0
npm
10.7.0
Hello, thank you for your issue. Unfortunately I was not able to reproduce. I did tried modify tests to execute ls and it seems to work just fine.
You can see code below
const terminal = await panel.openTerminalView();
await new Promise((res) => setTimeout(res, 2_000));
await terminal.executeCommand('ls', 5_000);
Could you please try again with added timeout into executeCommand method?
closing, feel free to reopen or just continue in the thread here in case of more questions.
I had the same issue when I forgot to switch my keyboard layout from Russian to English before the test. The command was supposed to be typed in English, but I guess selenium couldn't figure out what keys to send on the current russian layout.