在文本输入iPad之间移动时,排毒测试停止

时间:2018-04-04 13:53:19

标签: earlgrey detox

我已按照https://github.com/wix/detox的说明进行操作,创建了一些简单的测试并在iPhone SIM卡上成功运行。但是,当使用iPad(ios 11.2)时,它会在两个文本输入中的第一个输入文本后停止(对于登录屏幕)。我的测试如下

it('should log in and take user to feed', async () => {
  await element(by.id('email')).typeText('email')
  await element(by.id('password')).typeText('password')
  await element(by.id('loginButton')).tap()
  await expect(element(by.id('feed'))).toBeVisible()
})

正如我所说,所有测试都通过iPhone而不是iPad,并且在查看SIM卡时,它显然会在第一个和第二个文本字段之间挂起。我也试过replaceText()导致测试失败,我认为由于EarlGrey https://github.com/wix/detox/issues/151的这个问题。

我搜索了这个问题,我认为这与https://github.com/google/EarlGrey/issues/239#issuecomment-247737738有关。如果有人知道修复我会非常感激。

感谢。

0 个答案:

没有答案