mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-27 07:59:20 +00:00
LinphoneUITester: add account creation test
This commit is contained in:
parent
fa852e1872
commit
2c94dc1d96
2 changed files with 21 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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"];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue