https://kotlinlang.org logo
Title
o

oday

01/19/2023, 10:58 AM
what would it take for such a test to be flaky? I mean it isnt even trying to do anything complicated, it’s just this:
@Test
fun itDisplaysTheSearchBarHint() {
    composeTestRule.onNodeWithText(
        composeTestRule.activity.getString(R.string.search_for_a_city)
    ).assertIsDisplayed()
}
same with this one
@Test
fun searchBarHasFocus() {
    composeTestRule.onNodeWithText(
        composeTestRule.activity.getString(R.string.search_for_a_city)
    ).assertIsFocused()
}
sometimes it works on CI, sometimes it fails, but locally never, anyone ever experience something like that?