Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
28 views

How to set up NavHost for android UI testing?

java.lang.IllegalArgumentException: Cannot navigate to NavDeepLinkRequest{ uri=android-app://androidx.navigation/movies/ }. Navigation graph has not been set for NavController androidx.navigation....
RocketMan's user avatar
8 votes
3 answers
6k views

How to iterate over an element (node) list on Android Jetpack Compose UI Tests?

I'm implementing some instrumented tests using the Jetpack Compose testing library. I'm not too familiar with Kotlin / Android development yet, but I have years of experience with Selenium and other ...
luis's user avatar
  • 81
0 votes
1 answer
596 views

Composable does not remember input when changing configuration in test

I'm writing instrumented tests for a Jetpack Compose component. My composable uses rememberSaveable to remember between configuration changes (activity restarts): @Composable fun AddUserScreen() { ...
Mahozad's user avatar
  • 24.1k
1 vote
1 answer
401 views

Which is a better way to access Context in instrumented unit tests?

Which of the following is more recommended to access Context in instrumented unit tests: using ApplicationProvider or InstrumentationRegistry? val context: Context = ApplicationProvider....
Tatsuya Fujisaki's user avatar