Skip to content

Commit eb6291a

Browse files
test: UI runner updates
1 parent 669360d commit eb6291a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

samples/swiftui/FirebaseSwiftUIExample/FirebaseSwiftUIExample/TestView.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ struct TestView: View {
7070
}
7171

7272
var body: some View {
73-
AuthPickerView().environment(authService)
73+
AuthPickerView(){
74+
Text("Hello, world!")
75+
}
76+
.environment(authService)
7477
}
7578
}

samples/swiftui/FirebaseSwiftUIExample/FirebaseSwiftUIExampleUITests/TestUtils.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ func createEmail() -> String {
1212
// MARK: - App Configuration
1313

1414
/// Creates and configures an XCUIApplication with default test launch arguments
15-
func createTestApp(mfaEnabled: Bool = false) -> XCUIApplication {
15+
@MainActor func createTestApp(mfaEnabled: Bool = false) -> XCUIApplication {
1616
let app = XCUIApplication()
1717
app.launchArguments.append("--test-view-enabled")
1818
if mfaEnabled {
@@ -23,7 +23,7 @@ func createTestApp(mfaEnabled: Bool = false) -> XCUIApplication {
2323

2424
// MARK: - Alert Handling
2525

26-
func dismissAlert(app: XCUIApplication) {
26+
@MainActor func dismissAlert(app: XCUIApplication) {
2727
if app.scrollViews.otherElements.buttons["Not Now"].waitForExistence(timeout: 2) {
2828
app.scrollViews.otherElements.buttons["Not Now"].tap()
2929
}

0 commit comments

Comments
 (0)