Fakultas Ilmu Komputer UI

Commit 125e6fc0 authored by Manuel Yoseph Ray's avatar Manuel Yoseph Ray
Browse files

[GREEN] membuat splash screen]

parent 97ab6c6b
Pipeline #67625 passed with stages
in 6 minutes and 46 seconds
......@@ -5,19 +5,18 @@
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:fundex_app/main.dart';
import '../lib/main.dart';
void main() {
testWidgets("Main screen loads", (WidgetTester widgetTester) async {
MaterialApp(home: MyApp());
await sleep(Duration(seconds: 10));
await widgetTester.pumpAndSettle();
testWidgets('My widget has title and text', (WidgetTester tester) async {
await tester.pumpWidget(MyApp());
expect(find.text('Hello World'), findsOneWidget);
expect(find.text('1'), findsNothing);
expect(find.text("What are you looking for?"), findsOneWidget);
expect(find.text('2'), findsNothing);
expect(find.text('Welcome to Flutters'), 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