Remove broken UI test (doubleNavigateToExploreThenReturnHome) (#2797)

* Remove unnecessary wait in LoginActivityTest

* Remove very flaky doubleNavigateToExploreThenReturnHome test

Can be added back once upstream issues are fixed (see #2688)
This commit is contained in:
Adam Jones 2019-03-29 09:20:01 +00:00 committed by Vivek Maskara
parent 488bdd9800
commit 5a36392423
2 changed files with 0 additions and 17 deletions

View file

@ -44,7 +44,6 @@ class LoginActivityTest {
@Test
fun testLogin() {
UITestHelper.loginUser()
UITestHelper.sleep(10000)
Intents.intended(hasComponent(MainActivity::class.java.name))
}

View file

@ -42,22 +42,6 @@ class NavigationBaseActivityTest {
openNavigationDrawerAndNavigateTo(R.id.action_login)
}
/**
* Clicks 'Explore' in the navigation drawer twice, then clicks 'home'
* Testing to avoid regression of #2200
*/
@Test
fun doubleNavigateToExploreThenReturnHome() {
// Explore
openNavigationDrawerAndNavigateTo(R.id.action_explore)
// Explore
openNavigationDrawerAndNavigateTo(R.id.action_explore)
// Home
openNavigationDrawerAndNavigateTo(R.id.action_home)
}
private fun openNavigationDrawerAndNavigateTo(menuItemId: Int) {
onView(withId(R.id.drawer_layout)).perform(DrawerActions.open())
UITestHelper.sleep(500)