Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix problems with cachePath service option
Using the `vscode` service with the `cachePath` option: ```js services: [["vscode", {cachePath: "/tmp/wdio-vscode-service"}]], ``` On the `6.0.0` version this results failure to run tests with this error: ``` ERROR @wdio/runner: Error: Invalid or unsupported WebDriver capabilities found ("cachePath"). Ensure to only use valid W3C WebDriver capabilities (see https://w3c.github.io/webdriver/#capabilities).If you run your tests on a remote vendor, like Sauce Labs or BrowserStack, make sure that you put them into vendor specific capabilities, e.g. "sauce:options" or "bstack:options". Please reach out to your vendor support team if you have further questions. ``` Seems like `cachePath` is not a capability based on any of the wdio types. Looking at the code, it seems like before assigning `options` to the capabilities made sense because `options` field actually contained different things in the wdio-chromedriver-service - https://github.com/webdriverio-community/wdio-chromedriver-service/blob/104e63525faa156866aa521397ae56ffc6059a8f/src/launcher.ts#L47 Right now the options are only relevant for the `vscode` service, so I've removed all logic that merges them into capabilities.
- Loading branch information