TestsUI: add remote provisioning test

This commit is contained in:
Gautier Pelloux-Prayer 2015-10-02 15:44:16 +02:00
parent 9b3f168cd1
commit 17cb27cd79
2 changed files with 8 additions and 1 deletions

View file

@ -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

View file

@ -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"