Adrian Landborn
08/21/2025, 7:26 AMAdrian Landborn
08/21/2025, 7:27 AMjava.lang.AssertionError: Failed to retrieve bounds of the node.
Reason: Expected exactly '1' node but could not find any node that satisfies: ((((Role = 'Button')[0]).children).filterToOne(Role = 'Image'))
at androidx.compose.ui.test.SemanticsNodeInteraction.fetchOneOrThrow(SemanticsNodeInteraction.kt:178)
at androidx.compose.ui.test.SemanticsNodeInteraction.fetchOneOrThrow$default(SemanticsNodeInteraction.kt:150)
at androidx.compose.ui.test.SemanticsNodeInteraction.fetchSemanticsNode(SemanticsNodeInteraction.kt:84)
at androidx.compose.ui.test.BoundsAssertionsKt.withUnclippedBoundsInRoot(BoundsAssertions.kt:259)
at androidx.compose.ui.test.BoundsAssertionsKt.assertWidthIsEqualTo-3ABfNKs(BoundsAssertions.kt:45)
``````Anton Beloglazov
08/21/2025, 12:16 PMhasAnyAncestor(SemanticsMatcher.expectValue(SemanticsProperties.Role, Role.Button)) and
SemanticsMatcher.expectValue(SemanticsProperties.Role, Role.Image))
Adrian Landborn
08/21/2025, 12:21 PM