Tags: lyft/Hammer
Tags
Reduce flakiness by improving some checks to ensure the app is ready. (… …#61) Changes: 1. Ensures the runloop is fully flushed before continuing 2. Force enables the accessibility engine and waits for it to load if it is the first time loading on a device 3. Improve detection for view did appear to hopefully detect when the window's root view controller has completed appearance better and reduce issues from slow sim boot 4. Check for unfinished animations with the assumption that we can use those for transitions. 5. Adds a new settings object to be able to configure some of these options
Improve view initialization (#42) Currently, when you initialize an event generator from a UIView, it adds that view directly to a UIWindow. This can be a destructive change because the view might already be a subview of another view (possibly even already added to a window) and it will get removed. This change detects if the view already has a window and uses that directly. If not, it will get the top level superview by transversing the view hierarchy and use that instead. Because we set the mainView to the view that was passed in the initializer, everything else remains the same and it should not be a breaking change.
PreviousNext