Sea*_*ici 11 android integration-testing android-testing android-espresso
因此,我正在使用针对 API 33 (Android 13) 的应用程序运行仪器测试。我注意到一些测试由于浓缩咖啡滑动功能无法正常工作而失败。
onView(withId(android.R.id.content)).perform(swipeUp())
测试不会在此调用中失败,但稍后会失败,因为我的测试取决于评估 UI 的操作。
作为参考,这是 Espresso swipeUp 函数中的代码:
public static ViewAction swipeUp() {
return actionWithAssertions(
    new GeneralSwipeAction(
        Swipe.FAST,
        GeneralLocation.translate(GeneralLocation.BOTTOM_CENTER, 0, -EDGE_FUZZ_FACTOR),
        GeneralLocation.TOP_CENTER,
        Press.FINGER));
}
我正在使用浓缩咖啡 3.3.0。在 API 33 模拟器上进行测试之前一切正常。
有其他人遇到过这个问题吗?如果没有,有解决方法吗?