I just upgraded to compose
2023.08.00
and one of my compose ui tests is behaving very oddly and is failing where it wasn't before the upgrade. I have a composable which contains a LazyVerticalGrid, with which I have added test tags to the items within it. In my test, I first set the number of items to be 3 and validate that there are 3 items with that test tag. I then update items list to a single item. However,
.onAllNodesWithTag("ServiceCard")
returns 3 items still. What is odd is that in the emulator, when I set a breakpoint right before I get those nodes, I can see only a single item/card visible. I've tried calling
awaitIdle
in case there was some work that needed to happen under the hood, but that didn't help. Any idea what might have changed to cause this? And is this the new expected behavior?