-
-
Notifications
You must be signed in to change notification settings - Fork 59
Open
Labels
help wantedExtra attention is neededExtra attention is needed
Description
The shipped type for the toBeDisplayed() assertion is not correct. At the moment, the assertion is declared like this:
toBeDisplayed(options?: ExpectWebdriverIO.CommandOptions): RHowever, the actual implementation accepts up to 3 parameters and the second parameter is actually not command options:
As a result, when calling the assertion in accordance with the current typings and providing command options, they're just ignored. For example, the `wait` option is not really applied:
expect(driver.$(selector)).toBeDisplayed({ wait: 10_000 });Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is needed