Dario Ahdoot
08/23/2023, 6:28 PM2023.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?shikasd
08/23/2023, 8:16 PMDario Ahdoot
08/24/2023, 9:49 AMDario Ahdoot
08/24/2023, 9:52 AMDario Ahdoot
08/24/2023, 9:55 AMvar names by mutableStateOf(
listOf(
"" +
"Bob",
"John",
"Billy",
"Jean",
)
)
shikasd
08/24/2023, 1:43 PMDario Ahdoot
08/24/2023, 6:00 PMshikasd
08/24/2023, 6:29 PMDario Ahdoot
08/24/2023, 6:31 PMshikasd
08/24/2023, 6:34 PMshikasd
08/24/2023, 6:34 PM