Update color_screen_test.dart

jwill_m3_demo
James Williams 2 months ago
parent b37c8dfa0a
commit 4e4d17b4cf

@ -6,6 +6,7 @@ import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart'; import 'package:flutter_test/flutter_test.dart';
import 'package:material_3_demo/color_palettes_screen.dart'; import 'package:material_3_demo/color_palettes_screen.dart';
import 'package:material_3_demo/main.dart'; import 'package:material_3_demo/main.dart';
import 'package:material_3_demo/scheme.dart';
import 'component_screen_test.dart'; import 'component_screen_test.dart';
@ -69,6 +70,6 @@ void main() {
)); ));
expect(find.text('Light ColorScheme'), findsOneWidget); expect(find.text('Light ColorScheme'), findsOneWidget);
expect(find.text('Dark ColorScheme'), findsOneWidget); expect(find.text('Dark ColorScheme'), findsOneWidget);
expect(find.byType(ColorGroup, skipOffstage: false), findsNWidgets(18)); expect(find.byType(SchemePreview, skipOffstage: false), findsNWidgets(2));
}); });
} }

Loading…
Cancel
Save