flutter-code-editor icon indicating copy to clipboard operation
flutter-code-editor copied to clipboard

Test read-only feature by simulating keyboard events

Open alexeyinkin opened this issue 3 years ago • 0 comments

Navigation, Delete and Backspace are currently simulated with WidgetTester.sendKeyEvent. This triggers Flutter's Shortcuts mechanism. However, typing text cannot be simulated like this, and we merely set CodeController.value to the new value.

This is insufficient because it leaves key handlers untested while the read-only feature may evolve to use them and to block input there.

alexeyinkin avatar Jul 21 '22 12:07 alexeyinkin