mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
the test may fail on CI without blocking the task/check
This commit is contained in:
parent
b0adf3c496
commit
85a4dbdc85
1 changed files with 14 additions and 11 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue