Fakultas Ilmu Komputer UI

Commit df78bebc authored by Agnes Handoko's avatar Agnes Handoko
Browse files

[RED] add test for floating button

parent 59cb7ae7
......@@ -16,7 +16,7 @@ void main() {
expect(find.byType(Scaffold), findsOneWidget);
expect(find.byKey(Key("Stack")), findsOneWidget);
expect(find.byType(TextFormField), findsOneWidget);
expect(find.byType(Icon), findsNWidgets(3));
expect(find.byType(Icon), findsNWidgets(4));
expect(find.text('Kamu mau kemana?'), findsOneWidget);
expect(find.text('Kamu mau kmn?'), findsNothing);
expect(find.byKey(containerTextField), findsOneWidget);
......@@ -30,7 +30,7 @@ void main() {
final googleMapKey = Key("Google Map");
await tester.pumpWidget(MaterialApp(home: Dashboard()));
expect(find.byType(GoogleMap), findsOneWidget);
expect(find.byType(Container), findsNWidgets(3));
expect(find.byType(Container), findsNWidgets(4));
expect(find.byKey(googleMapKey), findsOneWidget);
expect(find.byKey(containerGoogleMap), findsOneWidget);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment