Hello! We're trying to UI test our app that uses ...
# compose-destinations
n
Hello! We're trying to UI test our app that uses Compose Destinations. We don't want to test the navigation itself, because these are integration tests so what we do is we let the app work in the same way it does normally but we touch buttons and assert stuff. The navigation in our app works as expected when run as a normal app but it's not working at all when run through a UI test. Only the first destination is displayed and further calls to
navigate
are ignored. What could be the root issue here? Thanks!
@Rafael Costa Sorry for the direct ping. Do you reckon this be a bug on Navigation Component instead?
r
Hi @Nacho Ruiz Martin I don't know, I would need more information. What steps have you taken to try and get to root cause?
I really doubt it's something on Compose Destinations library 🤔
but, is there a crash, logs, something?
n
Yep, it sounds weird to me too, that’s why I asked. No logs 😞 , it just doesn’t navigate. At first, it wasn’t showing the start destination either, but we updated to the latest Compose Destinations v1 version + latest Compose BOM and it’s now displaying the starting one, but not the following.
Let me remove Compose Destinations and try to make it work with vanilla NavComponent.
r
are you using
onlyIfResumed
parameter when calling navigate methods of Compose Destinations?
n
No, we are not.
It’s indeed happening with vanilla NavComponent 🥲