XCUITest - iOS 15 typeText slow

Originator:ryan-paterson
Number:rdar://FB9737641 Date Originated:
Status:open Resolved:
Product:XCUITest Product Version:Xcode 13.0
Classification: Reproducible:
 
iOS 15 typeText with simulators is very slow compared to iOS 14 and 13 executions.
This is an issue with both UIKit and SwiftUI built apps.

The following test below ran against different iOS will demonstrate the issue.

```Swift
// app
import SwiftUI
struct ContentView: View {
    @State private var text: String = ""

    var body: some View {
        TextField("textfield", text: $text)
    }
}


// test
func testExample() {
    let app = XCUIApplication()
    app.launch()

    let textField = app.textFields.element
    textField.tap()
    textField.typeText(UUID().uuidString)
}
```

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!