Created
July 23, 2014 16:45
KIF TestActor utils
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(void)stuffText:(NSString*)text intoViewWithAccessibilityLabel:(NSString*)label { | |
UITextField *field = (UITextField*)[tester waitForViewWithAccessibilityLabel:label]; | |
field.text = text; | |
} | |
-(void)resetPersistentStore { | |
RKManagedObjectStore *objectStore = [[JSObjection defaultInjector] getObject:[RKManagedObjectStore class]]; | |
NSError *error = nil; | |
[objectStore resetPersistentStores:&error]; | |
if(error) { | |
NSLog(@"Reset persistent store failed with error: %@", error); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment