https://kotlinlang.org logo
#compose
Title
# compose
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:
Copy code
@Test
fun itDisplaysTheSearchBarHint() {
    composeTestRule.onNodeWithText(
        composeTestRule.activity.getString(R.string.search_for_a_city)
    ).assertIsDisplayed()
}
same with this one
Copy code
@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?
1
2 Views