mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
[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:
parent
dcbf076965
commit
4578600c1e
12 changed files with 129 additions and 6 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue