Skip to content

Conversation

@dprevost-LMI
Copy link
Contributor

@dprevost-LMI dprevost-LMI commented Dec 30, 2025

Fixes #1982.
Now:

  • We considered isNot when wait = 0
  • We run the condition function until the timeout, so it can become true before checking for the negation of it
  • Fixes multiple UTs whose titles were even correctly named but had the wrong assertions

Bonus: Fix toHaveElementProperty typing in the d.ts file

@dprevost-LMI dprevost-LMI marked this pull request as ready for review December 30, 2025 06:08
@dprevost-LMI
Copy link
Contributor Author

dprevost-LMI commented Dec 30, 2025

We run the condition function until the timeout, so it can become true before checking for the negation of it

Might need a second opinion here, since now when using expect().not, the test will be slower since we need to "always" timeout

Add toHaveTitle on main so it will be easier to "compare" with multi-remote  support changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Negation isNot is not always properly considered in waitUntil

1 participant