-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
Bug 🐛help wantedIssues that are free to take by anyone interestedIssues that are free to take by anyone interested
Description
Have you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
WebdriverIO Version
latest
Node.js Version
latest
Mode
WDIO Testrunner
Which capabilities are you using?
{
'bstack:options': {
deviceName: 'Samsung Galaxy S22 Ultra',
platformVersion: '12.0',
platformName: 'android'
}
}What happened?
BrowserStack's documentation indicates that the platformVersion capability can be defined, however the linter and current type don't have it.
Current properties:
export interface BrowserStackCapabilities {
What is your expected behavior?
The platformVersion field should be available
How to reproduce the bug.
Simply follow BrowserStack's getting started guide for Appium + WebdriverIO
Relevant log output
This is the lint VSCode reported error:
Type '({ 'bstack:options': { deviceName: string; platformVersion: string; platformName: string; }; } | { 'bstack:options': { deviceName: string; platformName: string; platformVersion: string; autoAcceptAlerts: boolean; }; } | { ...; })[]' is not assignable to type 'RequestedStandaloneCapabilities[]'.
Type '{ 'bstack:options': { deviceName: string; platformVersion: string; platformName: string; }; }' is not assignable to type 'RequestedStandaloneCapabilities'.
Types of property ''bstack:options'' are incompatible.
Object literal may only specify known properties, and 'platformVersion' does not exist in type 'BrowserStackCapabilities'.ts(2322)
Capabilities.d.ts(183, 5): The expected type comes from property 'capabilities' which is declared here on type 'Config'
### Code of Conduct
- [X] I agree to follow this project's Code of Conduct
### Is there an existing issue for this?
- [X] I have searched the existing issues
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Bug 🐛help wantedIssues that are free to take by anyone interestedIssues that are free to take by anyone interested