Fix existing Espresso tests (#3450)

* Fix existing Espresso tests

* Convert class to kotlin
This commit is contained in:
Vivek Maskara 2020-03-02 15:17:24 -07:00 committed by GitHub
parent 36cafd7c39
commit 65ec071493
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 48 additions and 13 deletions

View file

@ -46,6 +46,7 @@ class LoginActivityTest {
@Test
fun testForgotPassword() {
UITestHelper.sleep(3000)
Espresso.onView(ViewMatchers.withId(R.id.forgot_password))
.perform(ViewActions.click())
Intents.intended(CoreMatchers.allOf(IntentMatchers.hasAction(Intent.ACTION_VIEW), IntentMatchers.hasData(BuildConfig.FORGOT_PASSWORD_URL)));