From 28fe38aa17c49a4e3e433b04223142a32ccb3e66 Mon Sep 17 00:00:00 2001 From: Amine Date: Thu, 2 Jan 2025 20:32:53 +0100 Subject: [PATCH] test: fixed an ui test issue. --- .../readerforselfossv2/android/SettingsActivityGeneralTest.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/androidApp/src/androidTest/kotlin/bou/amine/apps/readerforselfossv2/android/SettingsActivityGeneralTest.kt b/androidApp/src/androidTest/kotlin/bou/amine/apps/readerforselfossv2/android/SettingsActivityGeneralTest.kt index 1b8b7e1..4859b02 100644 --- a/androidApp/src/androidTest/kotlin/bou/amine/apps/readerforselfossv2/android/SettingsActivityGeneralTest.kt +++ b/androidApp/src/androidTest/kotlin/bou/amine/apps/readerforselfossv2/android/SettingsActivityGeneralTest.kt @@ -6,6 +6,7 @@ import androidx.test.espresso.Espresso.openActionBarOverflowOrOptionsMenu import androidx.test.espresso.action.ViewActions import androidx.test.espresso.action.ViewActions.click import androidx.test.espresso.action.ViewActions.replaceText +import androidx.test.espresso.action.ViewActions.swipeUp import androidx.test.espresso.action.ViewActions.typeTextIntoFocusedView import androidx.test.espresso.assertion.ViewAssertions.matches import androidx.test.espresso.matcher.ViewMatchers.isChecked @@ -102,6 +103,7 @@ class SettingsActivityGeneralTest { ) ) ) + onView(withId(R.id.settings)).perform(swipeUp()) onView(withSettingsCheckboxWidget(R.string.display_all_counts_title)).check( matches( allOf(