Why android espresso test fails when checking whether textView text ends with expected string (when ellipsized)
问题 I have an android test checking that external text message is truncated and ends with three dots when applying android:ellipsize="end". I do not know why test fails despite text presented in a activity is properly formatted. @Test fun when_errorMessage_is_very_long_then_text_of_errorMessageTextView_ends_with_dots() { //given val errorMessage = """ Very long error, Very long error, Very long error, Very long error, Very long error, Very long error, Very long error, Very long error, Very long