@@ -23,6 +23,8 @@ class DaysUntilBirthdayUITests_iOS: XCTestCase {
2323 " Would you like to save this password to use with apps and websites? "
2424 private let signInDisclaimerHeaderText =
2525 " Sign in to Days Until Birthday "
26+ private let returningUserSignInDisclaimerHeaderText =
27+ " You’re signing back in to Days Until Birthday "
2628 private let additionalAccessHeaderText = " Days Until Birthday wants additional access to your Google Account "
2729 private let appTrustWarningText = " Make sure you trust Days Until Birthday "
2830 private let chooseAnAccountHeaderText = " Choose an account "
@@ -189,7 +191,7 @@ extension DaysUntilBirthdayUITests_iOS {
189191 return false
190192 }
191193
192- handleSignInDisclaimerIfNeeded ( )
194+ handleReturningUserSignInDisclaimerIfNeeded ( )
193195 handleAccessRequestIfNeeded ( )
194196
195197 return true
@@ -287,6 +289,18 @@ extension DaysUntilBirthdayUITests_iOS {
287289 }
288290 }
289291
292+ func handleReturningUserSignInDisclaimerIfNeeded( ) {
293+ let currentlyShowingReturningUserSignInDisclaimer =
294+ sampleApp. staticTexts [ returningUserSignInDisclaimerHeaderText]
295+ . waitForExistence ( timeout: timeout) &&
296+ sampleApp. buttons [ " Continue " ]
297+ . waitForExistence ( timeout: timeout)
298+
299+ if currentlyShowingReturningUserSignInDisclaimer {
300+ sampleApp. buttons [ " Continue " ] . tap ( )
301+ }
302+ }
303+
290304 /// This method looks for an account in the current view that reflects an already-signed-in state, and taps it.
291305 /// - returns: true if the signed-in account was found and tapped, otherwise returns false.
292306 func findAndTapExistingSignedInEmail( ) -> Bool {
0 commit comments