vscode-extension-tester icon indicating copy to clipboard operation
vscode-extension-tester copied to clipboard

[🚫 Bug] Terminal view execute command not working

Open sang2770 opened this issue 1 year ago • 1 comments

Describe the bug

Terminal view execute command not working
when execute command then Terminal only create new line and command not show image

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

sang2770 avatar Jun 14 '24 09:06 sang2770

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.

Image

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?

djelinek avatar Jul 18 '24 13:07 djelinek

closing, feel free to reopen or just continue in the thread here in case of more questions.

djelinek avatar Aug 21 '24 19:08 djelinek

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.

neochief avatar Oct 24 '24 00:10 neochief