diff --git a/packages/flutter/test/material/calendar_date_picker_test.dart b/packages/flutter/test/material/calendar_date_picker_test.dart index 3a47e27d4b..0930482c14 100644 --- a/packages/flutter/test/material/calendar_date_picker_test.dart +++ b/packages/flutter/test/material/calendar_date_picker_test.dart @@ -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)); }); });