Skip to content

Commit 5a36392

Browse files
domdomeggmaskaravivek
authored andcommitted
Remove broken UI test (doubleNavigateToExploreThenReturnHome) (commons-app#2797)
* Remove unnecessary wait in LoginActivityTest * Remove very flaky doubleNavigateToExploreThenReturnHome test Can be added back once upstream issues are fixed (see commons-app#2688)
1 parent 488bdd9 commit 5a36392

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

app/src/androidTest/java/fr/free/nrw/commons/LoginActivityTest.kt

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ class LoginActivityTest {
4444
@Test
4545
fun testLogin() {
4646
UITestHelper.loginUser()
47-
UITestHelper.sleep(10000)
4847
Intents.intended(hasComponent(MainActivity::class.java.name))
4948
}
5049

app/src/androidTest/java/fr/free/nrw/commons/NavigationBaseActivityTest.kt

-16
Original file line numberDiff line numberDiff line change
@@ -42,22 +42,6 @@ class NavigationBaseActivityTest {
4242
openNavigationDrawerAndNavigateTo(R.id.action_login)
4343
}
4444

45-
/**
46-
* Clicks 'Explore' in the navigation drawer twice, then clicks 'home'
47-
* Testing to avoid regression of #2200
48-
*/
49-
@Test
50-
fun doubleNavigateToExploreThenReturnHome() {
51-
// Explore
52-
openNavigationDrawerAndNavigateTo(R.id.action_explore)
53-
54-
// Explore
55-
openNavigationDrawerAndNavigateTo(R.id.action_explore)
56-
57-
// Home
58-
openNavigationDrawerAndNavigateTo(R.id.action_home)
59-
}
60-
6145
private fun openNavigationDrawerAndNavigateTo(menuItemId: Int) {
6246
onView(withId(R.id.drawer_layout)).perform(DrawerActions.open())
6347
UITestHelper.sleep(500)

0 commit comments

Comments
 (0)