Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 of 5 tasks
htho opened this issue Jan 16, 2025 · 1 comment
Open
3 of 5 tasks

Comments

@htho
Copy link

htho commented Jan 16, 2025

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.

@wswebcreation
Copy link
Member

Hi @htho

Thanks for submitting this issue. Are you able to create a PR for this? Help is much appreciated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants