【发布时间】:2015-10-13 20:19:25
【问题描述】:
有没有办法使用 Espresso 测试小吃栏是否显示正确的文本?
我有一个简单的调用来创建一个小吃店
Snackbar.make(mView, "My text", Snackbar.LENGTH_LONG).show();
我试过这个没有运气
onView(withText("My text")).inRoot(withDecorView(not(is(mActivityRule.getActivity().getWindow().getDecorView())))).check(matches(isDisplayed()));
【问题讨论】:
标签: android integration-testing android-testing android-espresso android-snackbar