@@ -121,6 +121,7 @@ final class MFAResolutionUITests: XCTestCase {
121121 /// - phoneNumber: The phone number to enroll for SMS MFA (e.g., "+15551234567")
122122 /// - displayName: Optional display name for the MFA factor
123123 /// - Returns: True if MFA was successfully enabled, false otherwise
124+ @MainActor
124125 private func enableSMSMFAViaEmulator(
125126 idToken: String ,
126127 phoneNumber: String ,
@@ -261,6 +262,7 @@ final class MFAResolutionUITests: XCTestCase {
261262 /// - Parameters:
262263 /// - phoneNumber: The phone number to retrieve the code for
263264 /// - codeType: The type of code - "enrollment" for MFA enrollment, "verification" for phone verification during resolution
265+ @MainActor
264266 private func getSMSVerificationCode( for phoneNumber: String , codeType: String = " enrollment " ) async -> String ? {
265267 let emulatorUrl = " http://127.0.0.1:9099/emulator/v1/projects/flutterfire-e2e-tests/verificationCodes "
266268
@@ -336,6 +338,7 @@ final class MFAResolutionUITests: XCTestCase {
336338 /// - email: The user's email address
337339 /// - password: The user's password (defaults to "123456")
338340 /// - Returns: The user's ID token, or nil if the sign-in failed
341+ @MainActor
339342 private func getIDTokenFromEmulator( email: String , password: String = " 123456 " ) async -> String ? {
340343 let signInUrl = " http://127.0.0.1:9099/identitytoolkit.googleapis.com/v1/accounts:signInWithPassword?key=fake-api-key "
341344
@@ -379,6 +382,7 @@ final class MFAResolutionUITests: XCTestCase {
379382 }
380383 }
381384
385+ @MainActor
382386 private func signUpUser( email: String , password: String = " 12345678 " ) async throws {
383387 // Create user via Auth Emulator REST API
384388 let url = URL ( string: " http://127.0.0.1:9099/identitytoolkit.googleapis.com/v1/accounts:signUp?key=fake-api-key " ) !
0 commit comments