From d3590bbb9fd899267837b5101b0a39596ba4f21e Mon Sep 17 00:00:00 2001 From: Aleksei Tiurin Date: Fri, 23 Feb 2024 02:39:04 +0300 Subject: [PATCH] fix test --- .../sampleapp/tests/uiautomator/UltronUiObjectActionsTest.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sample-app/src/androidTest/java/com/atiurin/sampleapp/tests/uiautomator/UltronUiObjectActionsTest.kt b/sample-app/src/androidTest/java/com/atiurin/sampleapp/tests/uiautomator/UltronUiObjectActionsTest.kt index 5d47e781..adf71c0a 100644 --- a/sample-app/src/androidTest/java/com/atiurin/sampleapp/tests/uiautomator/UltronUiObjectActionsTest.kt +++ b/sample-app/src/androidTest/java/com/atiurin/sampleapp/tests/uiautomator/UltronUiObjectActionsTest.kt @@ -144,8 +144,9 @@ class UltronUiObjectActionsTest: UiElementsTest() { //longClick @Test fun longClick_onLongClickable() { - page.button.exists().longClick() - page.eventStatus.textContains(getTargetString(R.string.button_event_long_click)) + page.button.exists().withAssertion { + page.eventStatus.textContains(getTargetString(R.string.button_event_long_click)) + }.longClick() } @Test