Fix the UI tests

This commit is contained in:
Alexander Bakker 2021-01-16 17:43:07 +01:00
parent f7a428b8cb
commit c6cb390990
2 changed files with 2 additions and 3 deletions

View file

@ -145,7 +145,6 @@ dependencies {
implementation "androidx.viewpager2:viewpager2:1.0.0" implementation "androidx.viewpager2:viewpager2:1.0.0"
implementation 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1' implementation 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
implementation 'com.github.avito-tech:krop:0.51' implementation 'com.github.avito-tech:krop:0.51'
implementation "com.github.bumptech.glide:annotations:${glideVersion}" implementation "com.github.bumptech.glide:annotations:${glideVersion}"
implementation "com.github.bumptech.glide:glide:${glideVersion}" implementation "com.github.bumptech.glide:glide:${glideVersion}"
implementation("com.github.bumptech.glide:recyclerview-integration:${glideVersion}") { implementation("com.github.bumptech.glide:recyclerview-integration:${glideVersion}") {
@ -180,7 +179,7 @@ dependencies {
testImplementation "androidx.test:core:${androidTestVersion}" testImplementation "androidx.test:core:${androidTestVersion}"
testImplementation "com.google.guava:guava:${guavaVersion}-jre" testImplementation "com.google.guava:guava:${guavaVersion}-jre"
testImplementation "junit:junit:${junitVersion}" testImplementation "junit:junit:${junitVersion}"
testImplementation "org.json:json:20200518" testImplementation "org.json:json:20201115"
testImplementation 'org.robolectric:robolectric:4.4' testImplementation 'org.robolectric:robolectric:4.4'
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.1' coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.1'

View file

@ -159,7 +159,7 @@ public class OverallTest extends AegisTest {
} }
private void addEntry(VaultEntry entry) { private void addEntry(VaultEntry entry) {
onView(withId(R.id.fab_expand_menu_button)).perform(click()); onView(withId(R.id.fab)).perform(click());
onView(withId(R.id.fab_enter)).perform(click()); onView(withId(R.id.fab_enter)).perform(click());
onView(withId(R.id.text_name)).perform(typeText(entry.getName()), closeSoftKeyboard()); onView(withId(R.id.text_name)).perform(typeText(entry.getName()), closeSoftKeyboard());