You can force scroll and check each item separately. Lazy layouts don't do anything about items that are not visible.
a
Alex Yordanov
02/13/2024, 2:17 PM
Thanks! I figured the force scroll part, but I stubbornly hoped that there’s a more elegant solution 😄
p
Per Jansson
02/13/2024, 3:19 PM
Sorry for jumping in from the sideline, but if you want to test if items will actually show in a lazy loading composable I think the elegant, and correct, way is to have the test actually scroll the list. It would be a different thing if it wasn’t a lazy composable being tested.