From 1de39bfdb2124e264b7229b3f0acc67cf0a498b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccol=C3=B2=20Forlini?= Date: Mon, 7 Oct 2024 17:11:50 +0200 Subject: [PATCH] Update UI Tests NOJIRA --- .../robot/detail/section/MessageFooterAttachmentSection.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/uiTest/kotlin/ch/protonmail/android/uitest/robot/detail/section/MessageFooterAttachmentSection.kt b/app/src/uiTest/kotlin/ch/protonmail/android/uitest/robot/detail/section/MessageFooterAttachmentSection.kt index e2c1da1450..45ceaa1d2b 100644 --- a/app/src/uiTest/kotlin/ch/protonmail/android/uitest/robot/detail/section/MessageFooterAttachmentSection.kt +++ b/app/src/uiTest/kotlin/ch/protonmail/android/uitest/robot/detail/section/MessageFooterAttachmentSection.kt @@ -23,6 +23,7 @@ import androidx.compose.ui.test.assertTextEquals import androidx.compose.ui.test.hasTestTag import androidx.compose.ui.test.onNodeWithTag import androidx.compose.ui.test.performScrollTo +import androidx.test.espresso.Espresso import ch.protonmail.android.mailmessage.presentation.ui.AttachmentFooterTestTags import ch.protonmail.android.test.ksp.annotations.AttachTo import ch.protonmail.android.test.ksp.annotations.VerifiesOuter @@ -74,6 +75,7 @@ internal class MessageFooterAttachmentSection : ComposeSectionRobot() { } private fun scrollTo() { + Espresso.closeSoftKeyboard() rootItem.awaitDisplayed().performScrollTo() }