How to make RealityKit both parent and child entities accessible to UI tests?

I have a SwiftUI RealityKit app, and I am writing UI tests for it. The app has entities that have children. All entities have an accessibilityComponent so that they can be found by UI tests.

If I set isAccessibilityElement = true for the parent, the UI tests find the parent.
If I set isAccessibilityElement = false for the parent, and isAccessibilityElement = true for the child, the UI tests find the child.
If I set isAccessibilityElement = true for the parent as well as for the child, the UI tests find only the parent.

How can I make parent and child entities both be accessible by the UI tests?

How to make RealityKit both parent and child entities accessible to UI tests?
 
 
Q