vscode-extension-tester
vscode-extension-tester copied to clipboard
[🚫 Bug] InputBox.setText needs to be confirmed twice when working with File/Folder picker
Describe the bug
Steps to reproduce
await new Workbench().executeCommand('File: Open Folder...');
// ----
input = await InputBox.create();
await input.setText(join(WORKSPACE_FOLDER, 'some_path'));
await input.confirm();
await input.confirm(); // from some reason when using setText for a path pick input it needs to be confirmed twice...
Logs
-
Operating System
macOS
Visual Studio Code
1.97
vscode-extension-tester
8.12.0
NodeJS
20
npm
No response
The reason is that first there is a Select and then a Confirm button. The Select is formatting the provided input to the expected format (such as adding a slash or backslash at the end of the path when it is a folder