expect-webdriverio
expect-webdriverio copied to clipboard
💡[Feature]: Allow variable negation for expect
Allow variable negation, useful for Cucumber pattern:
Then(/^I should( not)? see stuff$/i, async (not?: string) => await expect(PageObj.elem)[not].toBeDisplayed())
Is this not supported? I see usage of isNot in the matchers.
isNot might just be for internal use.
AFAIK there is no exposed way to pass a truthy/false value.
I tested it with a latest install of WebdriverIO and everything was working as expected. Do you have a reproducible example?
Closing due to inactivity.