Issue
Radiography crashes when scanning Compose trees containing a DatePickerDialog and DatePicker with Material3 version 1.4.0. It seems like on prior Material versions this is not part of the semantic tree so there is no crash. The crash is:
at androidx.compose.ui.internal.InlineClassHelperKt.throwIllegalStateException(InlineClassHelper.kt:28)
at androidx.compose.ui.node.TraversableNodeKt.traverseAncestors(TraversableNode.kt:367)
at androidx.compose.material3.internal.ChildSemanticsNode.applySemantics(ChildParentSemantics.kt:92)
at radiography.ScannableView$ComposeView.getSemanticsConfigurations(ScannableView.kt:90)
at radiography.internal.SemanticsKt.findTestTags(Semantics.kt:10)
at radiography.ScanScopes$composeTestTagScope$1$1$1.invoke(ScanScopes.kt:80)
at radiography.ScanScopes.composeTestTagScope$subtreesMatching(ScanScopes.kt:71)
at radiography.ScanScopes.access$composeTestTagScope$subtreesMatching(ScanScopes.kt:11)
at radiography.ScanScopes$composeTestTagScope$subtreesMatching$1.invoke(ScanScopes.kt:72)
at kotlin.sequences.FlatteningSequence$iterator$1.ensureItemIterator(Sequences.kt:330)
at kotlin.sequences.FlatteningSequence$iterator$1.hasNext(Sequences.kt:318)
...
at kotlin.sequences.FlatteningSequence$iterator$1.ensureItemIterator(Sequences.kt:331)
at kotlin.sequences.FlatteningSequence$iterator$1.hasNext(Sequences.kt:318)
at kotlin.sequences.SequencesKt___SequencesKt.toList(_Sequences.kt:813)
at radiography.ScanScopes.composeTestTagScope$lambda$5(ScanScopes.kt:82)
at radiography.ScanScopes.$r8$lambda$eJaoumvGYjjnYAH8iD2oEO1Tidw(Unknown Source:0)
at radiography.ScanScopes$$ExternalSyntheticLambda0.findRoots(D8$$SyntheticClass:0)
at radiography.test.compose.Material3DatePickerTest.findComposableRootWithTestTag(Material3DatePickerTest.kt:68)
Steps to reproduce
I created a test case in a fork that can be run to demonstrate the crash: https://github.com/pmecho/radiography/blob/material-3-date-picker-crash/compose-tests/src/androidTest/java/radiography/test/compose/Material3DatePickerTest.kt#L35
Issue
Radiography crashes when scanning Compose trees containing a
DatePickerDialogandDatePickerwith Material3 version 1.4.0. It seems like on prior Material versions this is not part of the semantic tree so there is no crash. The crash is:Steps to reproduce
I created a test case in a fork that can be run to demonstrate the crash: https://github.com/pmecho/radiography/blob/material-3-date-picker-crash/compose-tests/src/androidTest/java/radiography/test/compose/Material3DatePickerTest.kt#L35