import XCTest final class FaultTestUITests: XCTestCase { let app = XCUIApplication() override func setUpWithError() throws { continueAfterFailure = false app.launch() } func testFault() throws { let textField = app.textFields["Enter text"] textField.tap() textField.typeText("abc\n") XCTAssertEqual(textField.value as! String, "abc") } }