I am writing the test cases for the Fragment. I can able to set a text to the Edittext but am unable to setText to the text view from testing. Please, anyone, help me to resolve this issue.Bellow is my code for edit text.
onView(withId(R.id.editText))
.perform(typeText("my text"), closeSoftKeyboard());
Please help me how to set a text to the text view.