summaryrefslogtreecommitdiff
path: root/test/ios/KIFTestActor+MapboxGL.m
blob: 6c5e53f40ddf6ffc90ea8043d4e01dbfd1c27992 (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 <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