From 17cb27cd79ac4fbfa535f128004330d2dfac9da8 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Fri, 2 Oct 2015 15:44:16 +0200 Subject: [PATCH] TestsUI: add remote provisioning test --- TestsUI/AssistantTester.m | 7 +++++++ TestsUI/LinphoneTestCase.m | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/TestsUI/AssistantTester.m b/TestsUI/AssistantTester.m index 94c1a565b..4a4107a6f 100644 --- a/TestsUI/AssistantTester.m +++ b/TestsUI/AssistantTester.m @@ -116,4 +116,11 @@ } } +- (void)testRemoteProvisioning { + [tester tapViewWithAccessibilityLabel:@"Start"]; + [tester tapViewWithAccessibilityLabel:@"Remote provisioning"]; + [tester enterTextIntoCurrentFirstResponder:@"smtp.linphone.org/testios_xml"]; + [tester tapViewWithAccessibilityLabel:@"Fetch"]; + [self waitForRegistration]; +} @end diff --git a/TestsUI/LinphoneTestCase.m b/TestsUI/LinphoneTestCase.m index 320c35b1f..e5972e36b 100644 --- a/TestsUI/LinphoneTestCase.m +++ b/TestsUI/LinphoneTestCase.m @@ -154,7 +154,7 @@ - (void)waitForRegistration { // wait for account to be registered - int timeout = 15; // TODO: check why this is so wrong... + int timeout = 15; while (timeout && ![tester tryFindingViewWithAccessibilityLabel:@"Registration state" value:@"Registered"