自升级到 Xcode 8.1 后,我使用 twoFingerTap()
缩小 Google map GMSMapView
的 UI 测试失败了
Assertion Failure: Element.swift:135: UI Testing Failure - Unable to find unoccluded area to perform event.
前面的信息是
Recompute visible frame by excluding frames of occluding elements StatusBar and "the view's identifier"
有人知道我应该怎么做吗?尝试了 tapWithNumberOfTaps(1, numberOfTouches: 2)
并且发生了同样的事情。
NB. 问题肯定只存在于多指点击——doubleTap()
和 pinchWithScale(2.0, velocity: 1.0)
继续在 Xcode 8.1 下正常工作。 pinchWithScale(0.5, velocity: -1.0)
继续移动原点而不是缩放,这也是它在 Xcode 7 中对 GMSMapView
所做的。
最佳答案
我不确定您是在绘制 UI 还是在使用 Storyboard。然而,您似乎没有正确地将元素绘制到 View 中。也许使用约束可以将元素保护到您的 View 中。
关于ios - Xcode 8.1 UI 测试 twoFingerTap() 在谷歌地图 View 上失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40371741/