Skip to content

Commit 058fc3e

Browse files
test: test buttons are present in auth picker
1 parent 10f89aa commit 058fc3e

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

samples/swiftui/FirebaseSwiftUIExample/FirebaseSwiftUIExampleUITests/FirebaseSwiftUIExampleUITests.swift

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,27 @@ final class FirebaseSwiftUIExampleUITests: XCTestCase {
6161
appleButton.waitForExistence(timeout: 5),
6262
"Apple sign-in button should exist"
6363
)
64+
65+
// Check for Github sign-in button
66+
let githubButton = app.buttons["sign-in-with-github.com-button"]
67+
XCTAssertTrue(
68+
githubButton.waitForExistence(timeout: 5),
69+
"Github sign-in button should exist"
70+
)
71+
72+
// Check for Microsoft sign-in button
73+
let microsoftButton = app.buttons["sign-in-with-microsoft.com-button"]
74+
XCTAssertTrue(
75+
microsoftButton.waitForExistence(timeout: 5),
76+
"Microsoft sign-in button should exist"
77+
)
78+
79+
// Check for Yahoo sign-in button
80+
let yahooButton = app.buttons["sign-in-with-yahoo.com-button"]
81+
XCTAssertTrue(
82+
yahooButton.waitForExistence(timeout: 5),
83+
"Yahoo sign-in button should exist"
84+
)
6485

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

0 commit comments

Comments
 (0)