Fix problems in SetMessageExpirationActivityTest.kt

MAILAND-2623
This commit is contained in:
Davide Farella 2021-11-26 17:04:01 +01:00 committed by Zorica Stojchevska
parent 1dcb55bee8
commit dfc37024d7
1 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ import androidx.test.espresso.matcher.ViewMatchers.withId
import androidx.test.espresso.matcher.ViewMatchers.withText
import androidx.test.internal.runner.junit4.AndroidJUnit4ClassRunner
import ch.protonmail.android.R
import ch.protonmail.android.util.withTextInputEditTextId
import ch.protonmail.android.util.withProtonInputEditTextId
import org.hamcrest.core.AllOf
import org.junit.runner.RunWith
import kotlin.test.BeforeTest
@ -302,10 +302,10 @@ class SetMessageExpirationActivityTest {
onView(withId(R.id.set_msg_expiration_picker_view))
private fun onCustomDaysView(): ViewInteraction =
onView(withTextInputEditTextId(R.id.days_and_hours_picker_days_input))
onView(withProtonInputEditTextId(R.id.days_and_hours_picker_days_input))
private fun onCustomHoursView(): ViewInteraction =
onView(withTextInputEditTextId(R.id.days_and_hours_picker_hours_input))
onView(withProtonInputEditTextId(R.id.days_and_hours_picker_hours_input))
private fun ViewInteraction.checkSelected(): ViewInteraction =
checkVisible()