summaryrefslogtreecommitdiff
path: root/test/ios/KIFTestActor+MapboxGL.m
blob: ef40c1bed1a5833b6407f15a29d10877bc344162 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#import "KIFTestActor+MapboxGL.h"

#import "MapboxGL.h"

#import <KIF/UIApplication-KIFAdditions.h>

@implementation KIFTestActor (MapboxGL)

- (UIWindow *)window {
    return [[UIApplication sharedApplication] statusBarWindow];
}

- (UIViewController *)viewController {
    return (UIViewController *)[[tester.mapView nextResponder] nextResponder];
}

- (MGLMapView *)mapView {
    return (MGLMapView *)[tester waitForViewWithAccessibilityLabel:@"Map"];
}

- (UIView *)compass {
    return [tester waitForViewWithAccessibilityLabel:@"Compass"];
}

@end