diff --git a/RiotSwiftUI/Modules/Room/Composer/Test/UI/ComposerUITests.swift b/RiotSwiftUI/Modules/Room/Composer/Test/UI/ComposerUITests.swift index 20e5cf41f..16edec2fa 100644 --- a/RiotSwiftUI/Modules/Room/Composer/Test/UI/ComposerUITests.swift +++ b/RiotSwiftUI/Modules/Room/Composer/Test/UI/ComposerUITests.swift @@ -47,17 +47,20 @@ final class ComposerUITests: MockScreenTestCase { // This test requires "connect hardware keyboard" to be off on the simulator // And may not work on the CI -// func testFastTyping() throws { -// app.goToScreenWithIdentifier(MockComposerScreenState.send.title) -// let text = "fast typing test" -// let wysiwygTextView = app.textViews.allElementsBoundByIndex[0] -// XCTAssertTrue(wysiwygTextView.exists) -// wysiwygTextView.tap() -// sleep(2) -// wysiwygTextView.typeText(text) -// let value = wysiwygTextView.value as! String -// XCTAssert(value == text, "Text view value is: \(value)") -// } + func testFastTyping() throws { + app.goToScreenWithIdentifier(MockComposerScreenState.send.title) + let text = "fast typing test" + let wysiwygTextView = app.textViews.allElementsBoundByIndex[0] + XCTAssertTrue(wysiwygTextView.exists) + wysiwygTextView.tap() + sleep(2) + wysiwygTextView.typeText(text) + let options = XCTExpectedFailure.Options() + options.isStrict = false + XCTExpectFailure("Test may fail on CI", options: options) + let value = wysiwygTextView.value as? String + XCTAssert(value == text, "Text view value is: \(value ?? "nil")") + } func testLongPressDelete() throws { app.goToScreenWithIdentifier(MockComposerScreenState.send.title)