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