[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
This commit is contained in:
Vanshika Arora 2019-04-02 09:04:05 +05:30 committed by Vivek Maskara
parent dcbf076965
commit 4578600c1e
12 changed files with 129 additions and 6 deletions

View file

@ -8,7 +8,6 @@ import androidx.test.espresso.intent.Intents.intended
import androidx.test.espresso.intent.matcher.IntentMatchers.hasComponent
import androidx.test.espresso.matcher.ViewMatchers
import androidx.test.espresso.matcher.ViewMatchers.withId
import androidx.test.filters.MediumTest
import androidx.test.rule.ActivityTestRule
import androidx.test.runner.AndroidJUnit4
import fr.free.nrw.commons.auth.LoginActivity
@ -18,7 +17,6 @@ import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith
@MediumTest
@RunWith(AndroidJUnit4::class)
class SignupTest {
@get:Rule
@ -43,4 +41,9 @@ class SignupTest {
intended(hasComponent(SignupActivity::class.java.name))
Intents.release()
}
@Test
fun orientationChange() {
UITestHelper.changeOrientation(activityRule)
}
}