redhat-developer / vscode-extension-tester

ExTester: Your Essential UI Testing Companion for Visual Studio Code Extensions! Seamlessly execute UI tests with Selenium WebDriver, ensuring robustness and reliability in your extension development journey. Simplify UI testing for your VS Code extensions and elevate the quality of your user interface effortlessly.
Apache License 2.0
258 stars 71 forks source link

[🚀 Request] Make the sleep after open-resources configurable #1544

Open DavyLandman opened 3 weeks ago

DavyLandman commented 3 weeks ago

Describe the request

There is an explicit, non-skippable sleep inside openResources. There is no way to disable that, can we make that a parameter? Or alternatively replace it with some driver.wait call?

Usage

Every one of our tests opens a different file, and loose 3s on openResources everytime. We cannot batch the "open" calls. It would make our tests quite bit faster if we can drop the sleep, and just wait for the editor to show up with that file.

Which we already have to do, since sometimes on slow machines it can take longer to open a workspace than 3s. (or even sometimes a file)

PS: I'm more than happy to submit a PR to add a parameter with a default in there, if this has a chance of getting merged ;)

DavyLandman commented 2 weeks ago

If someone runs into this as well, a work around is not to await on the openResources call/promise, but just monitor the open text editors for your file.