Fakultas Ilmu Komputer UI

Commit 77d96673 authored by Agnes Handoko's avatar Agnes Handoko
Browse files

[RED] add pos neg test for floating button

parent 57b74529
Pipeline #40944 failed with stages
in 3 minutes and 7 seconds
......@@ -36,7 +36,9 @@ void main() {
});
testWidgets('finds a floating in dashboard', (WidgetTester tester) async {
expect(find.byType(FloatingActionButton), findsOneWidget);
await tester.pumpWidget(MaterialApp(home: Dashboard()));
expect(find.byKey(Key("FloatingActionButton")), findsOneWidget);
expect(find.byKey(Key("FloatingActionButtonnnn")), findsNothing);
});
// testWidgets('finds a marker in google map', (WidgetTester tester) async {
......
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