Skip to content

Commit 78cd5f6

Browse files
committed
chore: update test target for watchOS
1 parent 96cdb46 commit 78cd5f6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

AmplifyPlugins/Auth/Tests/AuthHostApp/AuthIntegrationTests/PasswordlessTests/PasswordlessSignInTests.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,8 @@ class PasswordlessSignInTests: AWSAuthBaseTest {
455455
/// - I invoke Amplify.Auth.signIn with the username and password, using userAuth flow with an unsupported preferred factor
456456
/// - Then:
457457
/// - I should get a SELECT_CHALLENGE step.
458-
@available(iOS 17.4, *)
458+
#if os(iOS) || os(macOS) || os(visionOS)
459+
@available(iOS 17.4, macOS 13.5, visionOS 1.0, *)
459460
func testSignInWithUnsupportedPreference_givenValidUser_expectSelectChallenge() async throws {
460461
let username = "integTest\(UUID().uuidString)"
461462
let password = "Pp123@\(UUID().uuidString)"
@@ -477,7 +478,7 @@ class PasswordlessSignInTests: AWSAuthBaseTest {
477478
XCTFail("SignIn with a valid username/password should not fail \(error)")
478479
}
479480
}
480-
481+
#endif
481482
/// Test signIn with EMAIL_OTP preference triggers Confirm OTP flow
482483
///
483484
/// - Given: A user registered in Cognito user pool

0 commit comments

Comments
 (0)