From 5172c718e80ba06b0382868d76b59b15e700d99f Mon Sep 17 00:00:00 2001 From: Amir Panahandeh Date: Sun, 9 Jun 2024 09:22:17 +0330 Subject: [PATCH] Fix tests --- .../test/widgets/editor_input_client_mixin_deltas_test.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/fleather/test/widgets/editor_input_client_mixin_deltas_test.dart b/packages/fleather/test/widgets/editor_input_client_mixin_deltas_test.dart index 80ec5af7..c6a87dd2 100644 --- a/packages/fleather/test/widgets/editor_input_client_mixin_deltas_test.dart +++ b/packages/fleather/test/widgets/editor_input_client_mixin_deltas_test.dart @@ -131,6 +131,9 @@ void main() { when(() => rawEditor.keyboardAppearance).thenReturn(Brightness.light); when(() => rawEditor.textCapitalization) .thenReturn(TextCapitalization.none); + when(() => rawEditor.autofocus).thenReturn(true); + when(() => rawEditor.enableSuggestions).thenReturn(true); + when(() => rawEditor.enableInteractiveSelection).thenReturn(true); when(() => controller.replaceText(any(), any(), any(), selection: any(named: 'selection'))).thenReturn(null); editorState.openConnectionIfNeeded();