Skip to content

Instantly share code, notes, and snippets.

@augustj
Created July 23, 2014 16:45
Show Gist options
  • Save augustj/aff821523a4393eac136 to your computer and use it in GitHub Desktop.
Save augustj/aff821523a4393eac136 to your computer and use it in GitHub Desktop.
KIF TestActor utils
-(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