Improves a test in calendar_date_picker_test.dart (#94805)
This commit is contained in:
@@ -577,17 +577,7 @@ void main() {
|
||||
await tester.sendKeyEvent(LogicalKeyboardKey.space);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
// Navigate out of the grid and to the OK button.
|
||||
await tester.sendKeyEvent(LogicalKeyboardKey.tab);
|
||||
await tester.sendKeyEvent(LogicalKeyboardKey.tab);
|
||||
await tester.sendKeyEvent(LogicalKeyboardKey.tab);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
// Activate OK.
|
||||
await tester.sendKeyEvent(LogicalKeyboardKey.space);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
// Should have selected Jan 18.
|
||||
// Should have selected Jan 19.
|
||||
expect(selectedDate, DateTime(2016, DateTime.january, 19));
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user