From 722415778fe63e5fb5f89a7d10edf9c7a588fe87 Mon Sep 17 00:00:00 2001 From: Ayush Date: Thu, 21 Nov 2024 11:58:47 +0530 Subject: [PATCH] fixed tests --- .../android/app/settings/profile/ProfileEditActivityTest.kt | 4 ++++ .../android/app/settings/profile/ProfileEditFragmentTest.kt | 1 + 2 files changed, 5 insertions(+) diff --git a/app/src/sharedTest/java/org/oppia/android/app/settings/profile/ProfileEditActivityTest.kt b/app/src/sharedTest/java/org/oppia/android/app/settings/profile/ProfileEditActivityTest.kt index cbee7ee1069..643a0f2ca51 100644 --- a/app/src/sharedTest/java/org/oppia/android/app/settings/profile/ProfileEditActivityTest.kt +++ b/app/src/sharedTest/java/org/oppia/android/app/settings/profile/ProfileEditActivityTest.kt @@ -245,6 +245,10 @@ class ProfileEditActivityTest { .inRoot(isDialog()) .perform(click()) testCoroutineDispatchers.runCurrent() + onView(withText(R.string.profile_edit_delete_success_dialog_positive_button)) + .inRoot(isDialog()) + .perform(click()) + testCoroutineDispatchers.runCurrent() if (context.resources.getBoolean(R.bool.isTablet)) { intended(hasComponent(AdministratorControlsActivity::class.java.name)) } else { diff --git a/app/src/sharedTest/java/org/oppia/android/app/settings/profile/ProfileEditFragmentTest.kt b/app/src/sharedTest/java/org/oppia/android/app/settings/profile/ProfileEditFragmentTest.kt index 8496c4c24bd..3cc3883c160 100644 --- a/app/src/sharedTest/java/org/oppia/android/app/settings/profile/ProfileEditFragmentTest.kt +++ b/app/src/sharedTest/java/org/oppia/android/app/settings/profile/ProfileEditFragmentTest.kt @@ -185,6 +185,7 @@ class ProfileEditFragmentTest { onView(withText(R.string.profile_edit_delete_dialog_message)) .inRoot(isDialog()).check(matches(isDisplayed())) onView(withText(R.string.profile_edit_delete_dialog_positive)).perform(click()) + testCoroutineDispatchers.runCurrent() onView(withText(R.string.profile_edit_delete_successful_message)) .inRoot(isDialog()).check(matches(isDisplayed())) }