Skip to content

Commit 845b966

Browse files
format
1 parent 205091d commit 845b966

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

  • samples/swiftui/FirebaseSwiftUIExample/FirebaseSwiftUIExampleUITests

samples/swiftui/FirebaseSwiftUIExample/FirebaseSwiftUIExampleUITests/TestUtils.swift

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,34 +39,33 @@ func createEmail() -> String {
3939
@MainActor func pasteIntoField(_ field: XCUIElement, text: String, app: XCUIApplication) throws {
4040
UIPasteboard.general.string = text
4141
field.tap()
42-
42+
4343
// Give field time to become first responder
4444
usleep(200_000) // 0.2 seconds
45-
45+
4646
// Press and hold to bring up paste menu
4747
field.press(forDuration: 1.5)
48-
48+
4949
let pasteMenuItem = app.menuItems["Paste"]
50-
50+
5151
// Wait for paste menu to appear
5252
if !pasteMenuItem.waitForExistence(timeout: 3) {
5353
// Fallback: try double tap approach
5454
field.doubleTap()
5555
usleep(300_000) // 0.3 seconds
56-
56+
5757
if !pasteMenuItem.waitForExistence(timeout: 2) {
5858
throw NSError(
5959
domain: "TestError",
6060
code: 1,
6161
userInfo: [
62-
NSLocalizedDescriptionKey: "Failed to show paste menu for field. Text was: \(text)"
62+
NSLocalizedDescriptionKey: "Failed to show paste menu for field. Text was: \(text)",
6363
]
6464
)
6565
}
6666
}
67-
67+
6868
pasteMenuItem.tap()
69-
7069
}
7170

7271
// MARK: - User Creation

0 commit comments

Comments
 (0)