The iOS and OS X SDKs now share a non-UI test bundle. Moved the iOS UI test bundle into a uitest/ subdirectory and moved the OS X SDK tests into the darwin/ subdirectory. Upgraded KIF to v3.4.2.
26 lines
563 B
Objective-C
26 lines
563 B
Objective-C
#import "KIFTestActor+MapboxGL.h"
|
|
|
|
#import <Mapbox/Mapbox.h>
|
|
|
|
#import <KIF/UIApplication-KIFAdditions.h>
|
|
|
|
@implementation KIFTestActor (MapboxGL)
|
|
|
|
- (UIWindow *)window {
|
|
return [[UIApplication sharedApplication] statusBarWindow];
|
|
}
|
|
|
|
- (MGLTViewController *)viewController {
|
|
return (MGLTViewController *)[[tester.mapView nextResponder] nextResponder];
|
|
}
|
|
|
|
- (MGLMapView *)mapView {
|
|
return (MGLMapView *)[tester waitForViewWithAccessibilityLabel:@"Map"];
|
|
}
|
|
|
|
- (UIView *)compass {
|
|
return [tester waitForViewWithAccessibilityLabel:@"Compass"];
|
|
}
|
|
|
|
@end
|