From 24b9320d6ddb24a309a008785418b28782f00f6b Mon Sep 17 00:00:00 2001 From: Amine Date: Sun, 16 Mar 2025 14:27:30 +0100 Subject: [PATCH] fix: Fixed source deletion test. --- .../apps/readerforselfossv2/android/SourcesActivityTest.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/androidApp/src/androidTest/kotlin/bou/amine/apps/readerforselfossv2/android/SourcesActivityTest.kt b/androidApp/src/androidTest/kotlin/bou/amine/apps/readerforselfossv2/android/SourcesActivityTest.kt index 403b7b1..126a365 100644 --- a/androidApp/src/androidTest/kotlin/bou/amine/apps/readerforselfossv2/android/SourcesActivityTest.kt +++ b/androidApp/src/androidTest/kotlin/bou/amine/apps/readerforselfossv2/android/SourcesActivityTest.kt @@ -71,6 +71,8 @@ class SourcesActivityTest { fun deleteTheCreatedSource() { onView(withText(sourceName)).check(matches(isDisplayed())) onView(withId(R.id.deleteBtn)).perform(click()) + onView(withText(R.string.confirm_delete_title)).check(matches(isDisplayed())) + onView(withId(android.R.id.button1)).perform(click()) onView(withText(sourceName)).check(doesNotExist()) }