summaryrefslogtreecommitdiff
path: root/platform/ios/test/KIFTestActor+MapboxGL.m
diff options
context:
space:
mode:
Diffstat (limited to 'platform/ios/test/KIFTestActor+MapboxGL.m')
-rw-r--r--platform/ios/test/KIFTestActor+MapboxGL.m25
1 files changed, 25 insertions, 0 deletions
diff --git a/platform/ios/test/KIFTestActor+MapboxGL.m b/platform/ios/test/KIFTestActor+MapboxGL.m
new file mode 100644
index 0000000000..6c5e53f40d
--- /dev/null
+++ b/platform/ios/test/KIFTestActor+MapboxGL.m
@@ -0,0 +1,25 @@
+#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