Skip to content

TypeScript Error: '"wdio-ics:options"' does not exist in type 'RequestedStandaloneCapabilities' #732

Open
@htho

Description

@htho

Pre-check

Describe the improvement

I'd like to report

  • Unclear documentation
  • A typo
  • Missing documentation
  • Other

Description of the improvement / report

I created a repository where I tried to reproduce the problems I found, when setting up visual testing: https://github.com/htho/wdio-repro-visual-service

As I found out in #731 It IS possible to add wdio-ics:options to non-multiremote capabilities.
But the type information is missing.
It is also missing for multi-remote configurations.

https://github.com/htho/wdio-repro-visual-service/blob/main/wdio.base-multi.conf.ts

// this is basically the example from
// https://webdriver.io/docs/visual-testing/#webdriverio-multiremote
export const _defaultConfig: WebdriverIO.MultiremoteConfig = {
    capabilities: {
        chromeBrowserOne: {
            capabilities: {
                browserName: "chrome",
                "goog:chromeOptions": {
                    args: ["disable-infobars"],
                },
                // THIS!!!
                // TODO: REPORT
                "wdio-ics:options": { // TS ERROR: Object literal may only specify known properties, and '"wdio-ics:options"' does not exist in type 'RequestedStandaloneCapabilities'.
                    logName: "chrome-latest-one",
                },
            },
        },
        chromeBrowserTwo: {
            capabilities: {
                browserName: "chrome",
                "goog:chromeOptions": {
                    args: ["disable-infobars"],
                },
                // THIS!!!
                "wdio-ics:options": {
                    logName: "chrome-latest-two",
                },
            },
        },
    },
}

But unfortunately TypeScript does not know.
It would greatly improve DX to make this information available.

BTW: The error says RequestedStandaloneCapabilities but this IS a multi-remote configuration.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions