@@ -183,31 +183,35 @@ class AuthenticationExampleUITests: XCTestCase {
183183  } 
184184
185185  func  testPhoneAuthLoginRCEInEnforceMode( )  { 
186-     app. staticTexts [ " Phone Number " ] . tap ( ) 
187-     XCTAssertTrue ( app. staticTexts [ " Sign in using Phone Auth " ] . waitForExistence ( timeout:  3 ) ) 
188-     let  testPhone  =  " 12345678901 " 
189-     app. textFields [ " Enter Phone Number " ] . tap ( ) 
190-     app. textFields [ " Enter Phone Number " ] . typeText ( testPhone) 
191-     app. buttons [ " Send Verification Code " ] . tap ( ) 
192-     let  errorDialog  =  app. alerts [ " Error " ] 
193-     XCTAssertFalse ( 
194-       errorDialog. waitForExistence ( timeout:  5 ) , 
195-       " Error " 
196-     ) 
197-     let  verificationCodeInput  =  app. textFields [ " Enter verification code. " ] 
198-     XCTAssertTrue ( 
199-       verificationCodeInput. waitForExistence ( timeout:  2 ) , 
200-       " OTP input should appear. " 
201-     ) 
202-     verificationCodeInput. tap ( ) 
203-     let  testVerificationCode  =  " 123456 " 
204-     verificationCodeInput. typeText ( testVerificationCode) 
205-     app. buttons [ " Continue " ] . tap ( ) 
206-     // Sign out
207-     let  signOutButton  =  app. buttons [ " Sign Out " ] 
208-     if  signOutButton. exists { 
209-       signOutButton. tap ( ) 
210-     } 
186+     #if os(iOS) 
187+       app. staticTexts [ " Phone Number " ] . tap ( ) 
188+       XCTAssertTrue ( app. staticTexts [ " Sign in using Phone Auth " ] . waitForExistence ( timeout:  3 ) ) 
189+       let  testPhone  =  " 12345678901 " 
190+       app. textFields [ " Enter Phone Number " ] . tap ( ) 
191+       app. textFields [ " Enter Phone Number " ] . typeText ( testPhone) 
192+       app. buttons [ " Send Verification Code " ] . tap ( ) 
193+       let  errorDialog  =  app. alerts [ " Error " ] 
194+       XCTAssertFalse ( 
195+         errorDialog. waitForExistence ( timeout:  5 ) , 
196+         " Error " 
197+       ) 
198+       let  verificationCodeInput  =  app. textFields [ " Enter verification code. " ] 
199+       XCTAssertTrue ( 
200+         verificationCodeInput. waitForExistence ( timeout:  2 ) , 
201+         " OTP input should appear. " 
202+       ) 
203+       verificationCodeInput. tap ( ) 
204+       let  testVerificationCode  =  " 123456 " 
205+       verificationCodeInput. typeText ( testVerificationCode) 
206+       app. buttons [ " Continue " ] . tap ( ) 
207+       // Sign out
208+       let  signOutButton  =  app. buttons [ " Sign Out " ] 
209+       if  signOutButton. exists { 
210+         signOutButton. tap ( ) 
211+       } 
212+     #else 
213+       XCTFail ( " This test is only supported on iOS. " ) 
214+     #endif 
211215  } 
212216
213217  func  testPhoneAuthLoginRCEInEnforceModeIncorrectNumber( )  { 
0 commit comments