microsoft / vscode-extension-test-runner

Runs tests in the UI for VS Code extensions
MIT License
9 stars 4 forks source link

Is there a way to interact with the input box or quick pick(createInputBox) that runs during executionCommand? #8

Closed pwsses closed 4 months ago

pwsses commented 11 months ago

Hello. I develop Test code about command that run on the command palette.

my command has scenario which run some input box or quick pick in command. (I execute command using vscode.commands.executeCommand) I want write string and pick item in my Test code. But I don't know how. Do you have any way to use selenium or sinon, whatever.

Is there an official TC guide related to this?

Thank you.

connor4312 commented 4 months ago

You might find https://github.com/redhat-developer/vscode-extension-tester which is a system for UI automation testing in VS Code. Alternatively you can manually use a library like Sinon to stub things out.