mirror of
https://github.com/TanelOrumaa/Estonian-ID-card-mobile-authenticator-POC.git
synced 2024-12-23 04:50:17 +02:00
update UC4Test
This commit is contained in:
parent
515eea14bb
commit
f274b48d68
@ -6,12 +6,9 @@ import androidx.test.espresso.IdlingPolicies
|
|||||||
import androidx.test.espresso.NoMatchingViewException
|
import androidx.test.espresso.NoMatchingViewException
|
||||||
import androidx.test.espresso.action.ViewActions.*
|
import androidx.test.espresso.action.ViewActions.*
|
||||||
import androidx.test.espresso.assertion.ViewAssertions.matches
|
import androidx.test.espresso.assertion.ViewAssertions.matches
|
||||||
import androidx.test.espresso.matcher.RootMatchers.*
|
|
||||||
import androidx.test.espresso.matcher.ViewMatchers.*
|
import androidx.test.espresso.matcher.ViewMatchers.*
|
||||||
import androidx.test.ext.junit.runners.AndroidJUnit4
|
import androidx.test.ext.junit.runners.AndroidJUnit4
|
||||||
import androidx.test.rule.ActivityTestRule
|
import androidx.test.rule.ActivityTestRule
|
||||||
import org.hamcrest.CoreMatchers.`is`
|
|
||||||
import org.hamcrest.CoreMatchers.not
|
|
||||||
|
|
||||||
import org.junit.*
|
import org.junit.*
|
||||||
import org.junit.runner.RunWith
|
import org.junit.runner.RunWith
|
||||||
@ -49,11 +46,11 @@ class UC4Test {
|
|||||||
@Test
|
@Test
|
||||||
fun validCAN() {
|
fun validCAN() {
|
||||||
navigateToCANView()
|
navigateToCANView()
|
||||||
|
onView(withText(R.string.can_helper_text)).check(matches(isDisplayed()))
|
||||||
onView(supportsInputMethods()).perform(typeText("123456"))
|
onView(supportsInputMethods()).perform(typeText("123456"))
|
||||||
|
onView(withText(R.string.can_delete)).perform(closeSoftKeyboard())
|
||||||
|
|
||||||
onView(withText(R.string.can_status_saved)).inRoot(
|
onView(withText(R.string.can_status_saved)).check(matches(isDisplayed()))
|
||||||
withDecorView(not(`is`(activityActivityTestRule.activity.getWindow().getDecorView())))
|
|
||||||
).check(matches(isDisplayed()))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
Reference in New Issue
Block a user