apps-android-commons/app/src/androidTest/java/fr/free/nrw/commons/SearchActivityTest.kt
Vanshika Arora 4578600c1e [WIP] Adding Espresso test for orientation change (#2814)
* first commit

* initial commit

* added UI test for more activities

* added more tests

* improved code quality

* reverted code
2019-04-02 09:04:05 +05:30

19 lines
No EOL
482 B
Kotlin

package fr.free.nrw.commons
import androidx.test.rule.ActivityTestRule
import androidx.test.runner.AndroidJUnit4
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith
import fr.free.nrw.commons.explore.SearchActivity
@RunWith(AndroidJUnit4::class)
class SearchActivityTest {
@get:Rule
var activityRule = ActivityTestRule(SearchActivity::class.java)
@Test
fun orientationChange() {
UITestHelper.changeOrientation(activityRule)
}
}