From 40c3d74c6b473a03ea8c2a7931ad96b19eb2422e Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Mon, 15 Jun 2015 15:57:22 +0200 Subject: [PATCH] ChatTester.m: acknowledgeSystemAlert only available on simulator --- KifTests/ChatTester.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/KifTests/ChatTester.m b/KifTests/ChatTester.m index 3c61400e9..2b890443a 100644 --- a/KifTests/ChatTester.m +++ b/KifTests/ChatTester.m @@ -171,7 +171,9 @@ [tester tapViewWithAccessibilityLabel:LOCALIZED(@"Photo library")]; // if popup "Linphone would access your photo" pops up, click OK. if ([ALAssetsLibrary authorizationStatus] == ALAuthorizationStatusNotDetermined) { +#if TARGET_IPHONE_SIMULATOR [tester acknowledgeSystemAlert]; +#endif } [tester choosePhotoInAlbum:@"Camera Roll" atRow:1 column:1];