Detox icon indicating copy to clipboard operation
Detox copied to clipboard

Scroll-range limitation

Open d4vidi opened this issue 1 year ago • 0 comments

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

d4vidi avatar Jan 14 '24 17:01 d4vidi