the test may fail on CI without blocking the task/check

This commit is contained in:
Mauro Romito 2022-11-02 11:23:19 +01:00
parent b0adf3c496
commit 85a4dbdc85

View file

@ -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)