Skip to content

Commit

Permalink
Enabled iPad testing.
Browse files Browse the repository at this point in the history
There was only one failure on account of action sheets not having
Cancel buttons.  When run on an iPad, the test uses `dismissPopover`
instead.
  • Loading branch information
bnickel committed Aug 18, 2013
1 parent fa9ad20 commit a6c5cc8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 6 additions & 2 deletions KIF Tests/ModalViewTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,12 @@ - (void)testInteractionWithAnActionSheet
[tester waitForTappableViewWithAccessibilityLabel:@"Destroy"];
[tester waitForTappableViewWithAccessibilityLabel:@"A"];
[tester waitForTappableViewWithAccessibilityLabel:@"B"];
[tester waitForTappableViewWithAccessibilityLabel:@"Cancel"];
[tester tapViewWithAccessibilityLabel:@"Cancel"];

if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
[tester dismissPopover];
} else {
[tester tapViewWithAccessibilityLabel:@"Cancel"];
}
}

- (void)testInteractionWithAnActivityViewController
Expand Down
3 changes: 3 additions & 0 deletions KIF.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,7 @@
IPHONEOS_DEPLOYMENT_TARGET = 6.1;
ONLY_ACTIVE_ARCH = YES;
PRODUCT_NAME = "$(TARGET_NAME)";
TARGETED_DEVICE_FAMILY = "1,2";
WRAPPER_EXTENSION = app;
};
name = Debug;
Expand All @@ -778,6 +779,7 @@
IPHONEOS_DEPLOYMENT_TARGET = 6.1;
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
PRODUCT_NAME = "$(TARGET_NAME)";
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
WRAPPER_EXTENSION = app;
};
Expand Down Expand Up @@ -958,6 +960,7 @@
IPHONEOS_DEPLOYMENT_TARGET = 6.1;
ONLY_ACTIVE_ARCH = YES;
PRODUCT_NAME = "$(TARGET_NAME)";
TARGETED_DEVICE_FAMILY = "1,2";
WRAPPER_EXTENSION = app;
};
name = Coverage;
Expand Down

0 comments on commit a6c5cc8

Please sign in to comment.