Skip to content

Commit 6cead1e

Browse files
committed
chore(extra_fields): fixes to type_ahead tests
1 parent 3501363 commit 6cead1e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/form_builder_extra_fields/test/form_builder_typeahead_test.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ void main() {
5050
expect(formFieldValue(textFieldName), equals(newTextValue));*/
5151

5252
// await tester.enterText(widgetFinder, newTextValue);
53-
testWidgetKey.currentState!.didChange(initialTextValue);
54-
expect(textEditingController.text, initialTextValue);
53+
testWidgetKey.currentState!.didChange(newTextValue);
54+
expect(textEditingController.text, newTextValue);
5555
expect(formSave(), isTrue);
56-
expect(formFieldValue(textFieldName), equals(initialTextValue));
56+
expect(formFieldValue(textFieldName), equals(newTextValue));
5757

5858
// await tester.enterText(widgetFinder, '');
59-
textEditingController.text = '';
59+
testWidgetKey.currentState!.didChange(null);
6060
expect(formSave(), isTrue);
61-
expect(formFieldValue(textFieldName), isEmpty);
61+
expect(formFieldValue(textFieldName), isNull);
6262
});
6363
}

0 commit comments

Comments
 (0)