Basically the problem is the same as this one: XCTestCase: Wait for app to idle
I am using perpetually repeating \"background animations\" in my views. The !@#$#$&@
I used gh123man answer in Objective-C in case anyone needs it:
- (void)disableWaitForIdle {
SEL originalSelector = NSSelectorFromString(@"waitForQuiescenceIncludingAnimationsIdle:");
SEL swizzledSelector = @selector(doNothing);
Method originalMethod = class_getInstanceMethod(objc_getClass("XCUIApplicationProcess"), originalSelector);
Method swizzledMethod = class_getInstanceMethod([self class], swizzledSelector);
method_exchangeImplementations(originalMethod, swizzledMethod);
}
- (void)doNothing {
// no-op
}