File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -50,14 +50,14 @@ void main() {
50
50
expect(formFieldValue(textFieldName), equals(newTextValue));*/
51
51
52
52
// 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 );
55
55
expect (formSave (), isTrue);
56
- expect (formFieldValue (textFieldName), equals (initialTextValue ));
56
+ expect (formFieldValue (textFieldName), equals (newTextValue ));
57
57
58
58
// await tester.enterText(widgetFinder, '');
59
- textEditingController.text = '' ;
59
+ testWidgetKey.currentState ! . didChange ( null ) ;
60
60
expect (formSave (), isTrue);
61
- expect (formFieldValue (textFieldName), isEmpty );
61
+ expect (formFieldValue (textFieldName), isNull );
62
62
});
63
63
}
You can’t perform that action at this time.
0 commit comments