Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
theayushyadav11 committed Nov 21, 2024
1 parent 1b19183 commit 7224157
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
}
Expand Down

0 comments on commit 7224157

Please sign in to comment.