@@ -91,7 +91,6 @@ final class OpenPassDevelopmentAppUITests: XCTestCase {
91
91
92
92
guard app. wait ( for: . runningForeground, timeout: webViewTimeout) else {
93
93
throw UITestError ( " App did not return to foreground " )
94
- return
95
94
}
96
95
}
97
96
@@ -148,23 +147,23 @@ final class OpenPassDevelopmentAppUITests: XCTestCase {
148
147
func signIn( view signInView: SignInView , client: MailSlurpClient , inbox: InboxDto ) async throws {
149
148
// Ensure the webView is loaded
150
149
do {
151
- try signInView. emailInput. waitForExists ( timeout : webViewTimeout )
150
+ try signInView. emailInput. waitForExistence ( )
152
151
} catch {
153
152
// If the email address input does not exist, then it's likely that Chrome already has a previous
154
153
// login session active. We need to click the "Use another email" to clear out the old session
155
154
signInView. signInWithAnotherEmail. tap ( )
156
155
}
157
156
158
157
// Ensure the webView is loaded
159
- try signInView. emailInput. waitForExistsInteractive ( timeout : webViewTimeout ) {
158
+ try signInView. emailInput. waitForExistence {
160
159
// Now enter the email address of the MailSlurp inbox into the text input
161
160
// On a physical device, tapping the input is required before text may be entered
162
161
$0. tap ( )
163
162
$0. typeText ( inbox. emailAddress)
164
163
}
165
164
166
165
// Click Continue
167
- try signInView. emailInputContinue. waitForExistsInteractive {
166
+ try signInView. emailInputContinue. waitForExistence {
168
167
$0. tap ( )
169
168
}
170
169
@@ -174,7 +173,7 @@ final class OpenPassDevelopmentAppUITests: XCTestCase {
174
173
}
175
174
176
175
// ...and enter it into the OTP text boxes, ensuring the webView is loaded
177
- try signInView. codeInput. waitForExistsInteractive ( timeout : webViewTimeout ) { _ in
176
+ try signInView. codeInput. waitForExistence { _ in
178
177
signInView. enterCode ( code)
179
178
}
180
179
}
0 commit comments