Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Commit

Permalink
Ensure ObjC segment control has been tapped for (currently disabled) …
Browse files Browse the repository at this point in the history
…integration tests.
  • Loading branch information
Julian Rex authored and friedbunny committed Nov 2, 2018
1 parent 0bff168 commit 575f8c0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Examples.xcodeproj/xcshareddata/xcschemes/Examples.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@
</BuildableReference>
<SkippedTests>
<Test
Identifier = "ExamplesUITests/testAnimatedLineExample">
Identifier = "ExamplesUITests/testAnimatedLineExampleObjC">
</Test>
<Test
Identifier = "ExamplesUITests/testBuildingLightExample">
Identifier = "ExamplesUITests/testBuildingLightExampleObjC">
</Test>
<Test
Identifier = "ExamplesUITests/testCustomAnnotationView">
Identifier = "ExamplesUITests/testCustomAnnotationViewObjC">
</Test>
</SkippedTests>
</TestableReference>
Expand Down
11 changes: 7 additions & 4 deletions ExamplesUITests/ExamplesUITests.m
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ - (void)tearDown {
testAnimatedLineExample
Wait for the line to be fully animated
*/
- (void)testAnimatedLineExample {

- (void)testAnimatedLineExampleObjC {
[XCTContext runActivityNamed:@"AnimatedLineExample" block:^(id<XCTActivity> _Nonnull activity) {
[self.app.navigationBars[@"Examples"].buttons[@"ObjC"] tap];
[self.app.tables.staticTexts[@"Animate a line"] tap];

// Wait for notification
Expand All @@ -55,12 +56,13 @@ - (void)testAnimatedLineExample {
testCustomAnnotationView
Zoom and rotate the map.
*/
- (void)testCustomAnnotationView {
- (void)testCustomAnnotationViewObjC {

__block XCUIElement *element;
__block XCUIElement *compass;

[XCTContext runActivityNamed:@"Wait for initial render" block:^(id<XCTActivity> _Nonnull activity) {
[self.app.navigationBars[@"Examples"].buttons[@"ObjC"] tap];
[self.app.tables.staticTexts[@"Annotation views"] tap];
XCUIElementQuery *allQuery = [self.app descendantsMatchingType:XCUIElementTypeAny];
element = [allQuery elementMatchingType:XCUIElementTypeAny identifier:@"MGLMapViewId"];
Expand Down Expand Up @@ -91,11 +93,12 @@ - (void)testCustomAnnotationView {
}];
}

- (void)testBuildingLightExample {
- (void)testBuildingLightExampleObjC {
__block XCUIElement *element;
__block XCUIElement *slider;

[XCTContext runActivityNamed:@"Wait for initial render" block:^(id<XCTActivity> _Nonnull activity) {
[self.app.navigationBars[@"Examples"].buttons[@"ObjC"] tap];
[self.app.tables.staticTexts[@"Adjust lighting of 3D buildings"] tap];
XCUIElementQuery *allQuery = [self.app descendantsMatchingType:XCUIElementTypeAny];
element = [allQuery elementMatchingType:XCUIElementTypeAny identifier:@"MGLMapViewId"];
Expand Down

0 comments on commit 575f8c0

Please sign in to comment.