Skip to content

[🐛 Bug]: types: Missing BrowserStack capabilities platformVersion #13981

@tristian-azuara-sh

Description

@tristian-azuara-sh

Have you 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.

Screenshot 2024-12-15 at 12 22 33 AM

Current properties:

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

Screenshot 2024-12-15 at 12 25 52 AM

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug 🐛help wantedIssues that are free to take by anyone interested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions