Firebase TestLab不等待键入完成以获取屏幕截图

问题描述 投票:0回答:1

我在我的仪器测试和Firebase中使用Espresso来运行它们,并且运行正常。但是我认为Firebase的屏幕截图很早。使用Spoon时,也会发生这种行为。

ScreenShotter.takeScreenshot("main_screen_1", activityRule.activity)

isTextEqualsTo(R.id.toolbarTitle, R.string.add_book)

typeTextOnAEmptyEditText(R.id.titleInputText, title)
typeTextOnAEmptyEditText(R.id.descriptionInputText, description)

ScreenShotter.takeScreenshot("main_screen_2", activityRule.activity)

对于以上示例,我得到的结果是:enter image description here

仔细查看,您可以在制作用户界面ui动画期间检查描述标签是否向上移动,这意味着Espresso已开始单击/键入。

我只是不知道这里发生了什么。

编辑:我认为这是一个错误。在输入文字之前和之后,仅在输入文字(ViewActions.typeText)时,都无法捕获屏幕。我尚不知道它是否是TextInputLayout(材质UI)或屏幕捕获功能中的错误。

android firebase android-espresso firebase-test-lab
1个回答
0
投票

确定,找到原因。

这是InputTextLayout / TextInputEditText中的错误,不知道为什么或如何。刚刚添加了一个新的简单EditText,然后工作了。enter image description here

Issue被操作。

经验教训:如果要在ui测试期间审核应用程序流,请不要在Material UI中不使用任何内容。

© www.soinside.com 2019 - 2024. All rights reserved.