Skip to content

fix: .not should also wait for conditions (Breaking changes of issue 1982)#2014

Merged
christian-bromann merged 8 commits intowebdriverio:mainfrom
dprevost-LMI:not-should-also-wait-revert-issue-1982
Feb 1, 2026
Merged

fix: .not should also wait for conditions (Breaking changes of issue 1982)#2014
christian-bromann merged 8 commits intowebdriverio:mainfrom
dprevost-LMI:not-should-also-wait-revert-issue-1982

Conversation

@dprevost-LMI
Copy link
Contributor

@dprevost-LMI dprevost-LMI commented Jan 30, 2026

Fixes #2013

While trying to clarify & align the .not behaviour so we can move forward with support for $$(), this introduces breaking changes to the current expected behaviour. Reverting the assumed problem to keep the today expected behaviour and revisit it later if needed.

So

@dprevost-LMI dprevost-LMI changed the title fix: .not should also wait for conditions to be meet while issue https://github.com/webdriverio/expect-webdriverio/pull/1983 is a breaking changes fix: .not should also wait for conditions (Breaking changes of issue 1983) Jan 30, 2026
@dprevost-LMI dprevost-LMI force-pushed the not-should-also-wait-revert-issue-1982 branch from ccf5d79 to bbf1788 Compare January 30, 2026 14:00
@dprevost-LMI dprevost-LMI marked this pull request as ready for review January 30, 2026 14:34
@dprevost-LMI dprevost-LMI changed the title fix: .not should also wait for conditions (Breaking changes of issue 1983) fix: .not should also wait for conditions (Breaking changes of issue 1982) Jan 30, 2026
 sometimes when run too fast, it triggers conditions one more time than expected
Copy link
Member

@christian-bromann christian-bromann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@christian-bromann christian-bromann merged commit af8d5e5 into webdriverio:main Feb 1, 2026
6 checks passed
@wdio-bot
Copy link
Contributor

wdio-bot commented Feb 1, 2026

Hey dprevost-LMI 👋

Thank you for your contribution to WebdriverIO! Your pull request has been marked as an "Expensable" contribution.

We've sent you an email with further instructions on how to claim your expenses from our development fund.
Please make sure to check your spam folder as well. If you have any questions, feel free to reach out to us at expense@webdriver.io or in the contributing channel on Discord.

We are looking forward to more contributions from you in the future 🙌

Have a nice day,
The WebdriverIO Team 🤖

@dprevost-LMI
Copy link
Contributor Author

@christian-bromann, do you mind triggering a separate release for this and shipping the fix for the regression alone? Thanks!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] .not.toBePresent and .not.toBeDisplayed fails

3 participants