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"