Skip to content

Commit e92dc97

Browse files
test: test the existence of apple button
1 parent d595a8b commit e92dc97

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

samples/swiftui/FirebaseSwiftUIExample/FirebaseSwiftUIExampleUITests/FirebaseSwiftUIExampleUITests.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ final class FirebaseSwiftUIExampleUITests: XCTestCase {
5454
twitterButton.waitForExistence(timeout: 5),
5555
"Twitter/X sign-in button should exist"
5656
)
57+
58+
// Check for Apple sign-in button
59+
let appleButton = app.buttons["sign-in-with-apple-button"]
60+
XCTAssertTrue(
61+
appleButton.waitForExistence(timeout: 5),
62+
"Apple sign-in button should exist"
63+
)
5764

5865
// Check for Google sign-in button
5966
let googleButton = app.buttons["sign-in-with-google-button"]

0 commit comments

Comments
 (0)