Has anyone use the “onRoute” matcher for a Compose...
# compose
m
Has anyone use the “onRoute” matcher for a Compose test rule with a dialog destination in the nav controller? I’m getting an error:
Copy code
Failed: assertExists.
Reason: Expected exactly '1' node but found '2' nodes that satisfy: (isRoot)
Nodes found:
1) Node #1 at (l=0.0, t=56.0, r=320.0, b=470.0)px
Has 1 child
2) Node #20 at (l=0.0, t=0.0, r=320.0, b=470.0)px
Has 1 child
I’m assuming it’s because there’s 2 nodes that satisfy this condition, but how do i identify the one that’s the dialog?