How can you correctly put this test into the method:
onView(allOf(withId(R.id.textView), withHint(R.string.ui_common_email))) .perform(replaceText(AcceptanceConstants.TEST_NAME), closeSoftKeyboard()) Under correctly means that the arguments of this test will change, therefore I will have to use different arguments each time in the created method.
I try something like this:
fun someMethod(String id, String text, String textar) { onView(allOf(withId(R.id.textView), withHint(AcceptanceConstants.FULL_NAME))) .perform(replaceText(AcceptanceConstants.TEST_NAME), closeSoftKeyboard()) } and then call it:
someMethod(сюда параметры уже через запятую)