Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
autocorrection disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Velin92 committed Mar 8, 2024
1 parent 59fb5bd commit 12474ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import XCTest

extension WysiwygUITests {
func testRichTextModeAutocorrection() throws {
func disable_testRichTextModeAutocorrection() throws {
textView.typeTextCharByChar("/")
XCTAssertFalse(image(.autocorrectionIndicator).exists)
textView.typeText(XCUIKeyboardKey.delete.rawValue)
Expand All @@ -29,7 +29,7 @@ extension WysiwygUITests {
XCTAssertTrue(image(.autocorrectionIndicator).exists)
}

func testPlainTextModeAutocorrection() throws {
func disable_testPlainTextModeAutocorrection() throws {
waitForButtonToExistAndTap(.plainRichButton)
textView.typeTextCharByChar("/")
XCTAssertFalse(image(.autocorrectionIndicator).exists)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ public class WysiwygTextView: UITextView {
flusher.flush()
}
didSet {
toggleAutocorrectionIfNeeded()
// Disabled until we fix the predictive text issue
//toggleAutocorrectionIfNeeded()
delegate?.textViewDidChange?(self)
}
}
Expand Down

0 comments on commit 12474ae

Please sign in to comment.