Skip to content

Commit 508021c

Browse files
committed
Add UI tests for dismissing AuthPicker controller.
1 parent 02bc60e commit 508021c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

FirebaseUISampleUITests/FirebaseUISampleUITests.m

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ - (void)testSuccessSignIn {
6363
[tablesQuery.secureTextFields[@"Enter your password"] tap];
6464
[[[tablesQuery.cells containingType:XCUIElementTypeStaticText identifier:@"Password"] childrenMatchingType:XCUIElementTypeSecureTextField].element typeText:@"test"];
6565
[self.app.navigationBars[@"Sign in"].buttons[@"Sign in"] tap];
66+
[self.app.toolbars.buttons[@"Sign In"] isHittable];
6667
}
6768

6869
- (void)testSuccessSignUp {
@@ -81,6 +82,7 @@ - (void)testSuccessSignUp {
8182
[tablesQuery.buttons[@"ic visibility"] tap];
8283
[tablesQuery.buttons[@"ic visibility off"] tap];
8384
[self.app.navigationBars[@"Create account"].buttons[@"SaveButtonAccessibilityID"] tap];
85+
[self.app.toolbars.buttons[@"Sign In"] isHittable];
8486
}
8587

8688
- (void)testSeveralIDPs {
@@ -98,6 +100,8 @@ - (void)testSeveralIDPs {
98100
[[[[signInWithEmailNavigationBar childrenMatchingType:XCUIElementTypeButton] matchingIdentifier:@"Back"] elementBoundByIndex:0] tap];
99101
[self.app.navigationBars[@"Welcome"].buttons[@"Cancel"] tap];
100102
[self.app.alerts[@"Error"].buttons[@"Close"] tap];
103+
104+
[self.app.toolbars.buttons[@"Sign In"] isHittable];
101105
}
102106

103107
- (void)testEmailRecovery {
@@ -124,6 +128,7 @@ - (void)testEmailRecovery {
124128
[signInWithEmailNavigationBar.buttons[@"Cancel"] tap];
125129
[self.app.alerts[@"Error"].buttons[@"Close"] tap];
126130

131+
[self.app.toolbars.buttons[@"Sign In"] isHittable];
127132
}
128133

129134
- (void)testPhoneAuthCountryPicker {
@@ -146,6 +151,8 @@ - (void)testPhoneAuthCountryPicker {
146151
[self.app.navigationBars[@"Enter phone number"].buttons[@"Cancel"] tap];
147152
[self.app.navigationBars[@"Welcome"].buttons[@"Cancel"] tap];
148153
[self.app.alerts[@"Error"].buttons[@"Close"] tap];
154+
155+
[self.app.toolbars.buttons[@"Sign In"] isHittable];
149156
}
150157

151158
- (void)testPhoneAuthFlow {
@@ -171,6 +178,8 @@ - (void)testPhoneAuthFlow {
171178
[nextbuttonaccessibilityidButton tap];
172179
[self.app.keyboards.keys[@"6"] tap];
173180
[nextbuttonaccessibilityidButton tap];
181+
182+
[self.app.toolbars.buttons[@"Sign In"] isHittable];
174183
}
175184

176185
- (void)testDirectPhoneAuthSignIn {
@@ -202,7 +211,8 @@ - (void)testDirectPhoneAuthSignIn {
202211
[self.app.keyboards.keys[@"5"] tap];
203212
[self.app.keyboards.keys[@"6"] tap];
204213
[self.app.navigationBars[@"Verify phone number"].buttons[@"NextButtonAccessibilityID"] tap];
205-
[signInButton tap];
214+
215+
[self.app.toolbars.buttons[@"Sign In"] isHittable];
206216
}
207217

208218
@end

0 commit comments

Comments
 (0)