theappbusiness / TABTestKit

Library designed to make writing and maintaining automated tests for iOS applications. This includes automation of bio-metrics and controlling of mock servers
MIT License
59 stars 13 forks source link

iOS 13 new card style modal screens break doNotSee in NavigationContext #41

Closed KaneCheshire closed 5 years ago

KaneCheshire commented 5 years ago

NavigationContext determines if you don't see an element by checking if it exists, but because iOS 13's new card modal presentation style for screen has a bit of the screen showing below, that screen (and all its elements) still exist.

It will take some thought on how to properly handle this. We can't use isVisible(in) as it currently works because that just checks if the frame of the device and the frame of the screen intersect, which they will, it's just that another screen is on top.