mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 22:09:06 +00:00
Fix tests after recent M3 demo changes (#2194)
It's not yet clear to me what in
e5f3bacaf8
is causing the failure, but this resolves it.
This commit is contained in:
@@ -110,8 +110,9 @@ void main() {
|
|||||||
expect(find.byType(FilterChip), findsNWidgets(2));
|
expect(find.byType(FilterChip), findsNWidgets(2));
|
||||||
expect(find.byType(InputChip), findsNWidgets(2));
|
expect(find.byType(InputChip), findsNWidgets(2));
|
||||||
|
|
||||||
// Date pickers
|
// Date and time pickers
|
||||||
expect(find.widgetWithText(TextButton, 'Show date picker'), findsOneWidget);
|
expect(find.widgetWithText(DatePicker, 'Show date picker'), findsOneWidget);
|
||||||
|
expect(find.widgetWithText(TimePicker, 'Show time picker'), findsOneWidget);
|
||||||
|
|
||||||
// Menus
|
// Menus
|
||||||
expect(find.byType(MenuAnchor), findsNWidgets(5));
|
expect(find.byType(MenuAnchor), findsNWidgets(5));
|
||||||
@@ -128,9 +129,6 @@ void main() {
|
|||||||
// Switches
|
// Switches
|
||||||
expect(find.byType(Switch), findsNWidgets(4));
|
expect(find.byType(Switch), findsNWidgets(4));
|
||||||
|
|
||||||
// Time pickers
|
|
||||||
expect(find.widgetWithText(TextButton, 'Show time picker'), findsOneWidget);
|
|
||||||
|
|
||||||
// TextFields
|
// TextFields
|
||||||
expect(find.widgetWithText(TextField, 'Disabled'), findsNWidgets(2));
|
expect(find.widgetWithText(TextField, 'Disabled'), findsNWidgets(2));
|
||||||
expect(find.widgetWithText(TextField, 'Filled'), findsNWidgets(2));
|
expect(find.widgetWithText(TextField, 'Filled'), findsNWidgets(2));
|
||||||
|
|||||||
Reference in New Issue
Block a user