From 746191163ac02e046aeef3b782a7afa58a65394f Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Wed, 27 Jul 2022 12:17:03 +0100 Subject: [PATCH] updating test verification interaction, there's no skip and we can press back instead --- .../java/im/vector/app/ui/robot/ElementRobot.kt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/vector/src/androidTest/java/im/vector/app/ui/robot/ElementRobot.kt b/vector/src/androidTest/java/im/vector/app/ui/robot/ElementRobot.kt index 3b54a8607b..e7e0441c4b 100644 --- a/vector/src/androidTest/java/im/vector/app/ui/robot/ElementRobot.kt +++ b/vector/src/androidTest/java/im/vector/app/ui/robot/ElementRobot.kt @@ -182,13 +182,8 @@ class ElementRobot { val activity = EspressoHelper.getCurrentActivity()!! val popup = activity.findViewById(com.tapadoo.alerter.R.id.llAlertBackground)!! activity.runOnUiThread { popup.performClick() } - - waitUntilViewVisible(withId(R.id.bottomSheetFragmentContainer)) - waitUntilViewVisible(ViewMatchers.withText(R.string.action_skip)) - clickOn(R.string.action_skip) - assertDisplayed(R.string.are_you_sure) - clickOn(R.string.action_skip) waitUntilViewVisible(withId(R.id.bottomSheetFragmentContainer)) + pressBack() }.onFailure { Timber.w(it, "Verification popup missing") } }