mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
LinphoneUITester: add call contact with invalid phone number
This commit is contained in:
parent
84e51648a7
commit
760d05819a
1 changed files with 10 additions and 3 deletions
|
|
@ -63,14 +63,23 @@
|
|||
}
|
||||
|
||||
[tester tapViewWithAccessibilityLabel:@"Edit"];
|
||||
[tester tapViewWithAccessibilityLabel:@"Back"];
|
||||
}
|
||||
|
||||
#pragma mark - Tests
|
||||
|
||||
- (void)testCallContactWithInvalidPhoneNumber {
|
||||
NSString *contactName = [self getUUID];
|
||||
NSString *phone = @"+5 15 #0664;447*46";
|
||||
[self createContact:contactName lastName:@"dummy" phoneNumber:phone SIPAddress:nil];
|
||||
[tester tapViewWithAccessibilityLabel:[@"Linphone, " stringByAppendingString:phone]];
|
||||
[tester waitForViewWithAccessibilityLabel:[phone stringByAppendingString:@" not registered"]];
|
||||
[tester tapViewWithAccessibilityLabel:@"Dismiss"];
|
||||
}
|
||||
|
||||
- (void)testDeleteContact {
|
||||
NSString *contactName = [self getUUID];
|
||||
[self createContact:contactName lastName:@"dummy" phoneNumber:@"0102030405" SIPAddress:[self me]];
|
||||
[tester tapViewWithAccessibilityLabel:@"Back"];
|
||||
|
||||
NSString *fullName = [contactName stringByAppendingString:@" dummy"];
|
||||
|
||||
|
|
@ -138,8 +147,6 @@
|
|||
NSString *fullName = [contactName stringByAppendingString:@" dummy"];
|
||||
[self createContact:contactName lastName:@"dummy" phoneNumber:nil SIPAddress:nil];
|
||||
|
||||
[tester tapViewWithAccessibilityLabel:fullName traits:UIAccessibilityTraitStaticText];
|
||||
|
||||
/* Phone number */
|
||||
NSArray *phones = @[ @"01234", @"56789" ];
|
||||
[self addEntries:phones inSection:ContactSections_Number];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue