diff --git a/app/src/androidTest/java/org/kiwix/kiwixmobile/settings/SettingsRobot.kt b/app/src/androidTest/java/org/kiwix/kiwixmobile/settings/SettingsRobot.kt index 85f6ca0c5..f1dcee7de 100644 --- a/app/src/androidTest/java/org/kiwix/kiwixmobile/settings/SettingsRobot.kt +++ b/app/src/androidTest/java/org/kiwix/kiwixmobile/settings/SettingsRobot.kt @@ -43,7 +43,7 @@ fun settingsRobo(func: SettingsRobot.() -> Unit) = class SettingsRobot : BaseRobot() { private fun clickRecyclerViewItems(@StringRes vararg stringIds: Int) { - val matchers = stringIds.indices.map { withText(stringIds[it]) }.toTypedArray() + val matchers = stringIds.map { return@map withText(it) }.toTypedArray() onView( withClassName(Matchers.`is`(RecyclerView::class.java.name))