LinphoneUITester: add account creation test

This commit is contained in:
Gautier Pelloux-Prayer 2015-07-31 16:33:01 +02:00
parent fa852e1872
commit 2c94dc1d96
2 changed files with 21 additions and 1 deletions

View file

@ -200,7 +200,7 @@
<textField opaque="NO" clipsSubviews="YES" tag="101" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="Password" adjustsFontSizeToFit="NO" minimumFontSize="10" background="field_background.png" id="75" userLabel="passwordField" customClass="UILinphoneTextField">
<rect key="frame" x="32" y="266" width="255" height="45"/>
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" widthSizable="YES" flexibleMaxX="YES" flexibleMinY="YES" heightSizable="YES" flexibleMaxY="YES"/>
<accessibility key="accessibilityConfiguration" label="Password"/>
<accessibility key="accessibilityConfiguration" label="Password "/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits" autocorrectionType="no" secureTextEntry="YES"/>
<connections>

View file

@ -67,6 +67,26 @@
#pragma mark - Tests
- (void)testAccountCreation {
NSString *username = [NSString stringWithFormat:@"%@-%.2f", [self getUUID], [[NSDate date] timeIntervalSince1970]];
[tester tapViewWithAccessibilityLabel:@"Start"];
[tester tapViewWithAccessibilityLabel:@"Create linphone.org account" traits:UIAccessibilityTraitButton];
[tester enterText:username intoViewWithAccessibilityLabel:@"Username"];
[tester enterText:username intoViewWithAccessibilityLabel:@"Password "];
[tester enterText:username intoViewWithAccessibilityLabel:@"Password again"];
[tester enterText:@"testios@.dev.null" intoViewWithAccessibilityLabel:@"Email"];
[tester tapViewWithAccessibilityLabel:@"Register" traits:UIAccessibilityTraitButton];
[tester waitForViewWithAccessibilityLabel:@"Check validation" traits:UIAccessibilityTraitButton];
[tester tapViewWithAccessibilityLabel:@"Check validation"];
[tester waitForViewWithAccessibilityLabel:@"Account validation issue"];
[tester tapViewWithAccessibilityLabel:@"Continue"];
[tester tapViewWithAccessibilityLabel:@"Cancel"];
}
- (void)testExternalLoginWithTCP {
[self _externalLoginWithProtocol:@"TCP"];
}