Open
Description
Describe your idea
In some common Ux scenarios, an app screen holds an infinite scrollable list (e.g. a feed or a calendar). Looking up items using the current waitFor
-based API's is subpar, because when the items doesn't exist - for whatever reason, the scrolling continues on and on forever, and the test only fails due to a timeout.
This is bad in two senses:
- The test takes much longer to fail than it should. As a side-effect, in turn that results in unnecessarily bloated video artifacts, where applicable.
- The failure cause is implicit and hard to trace.
We should come up with an API that would allow for limitation the amount/times