17 lines
503 B
Dart
17 lines
503 B
Dart
import 'package:flutter_test/flutter_test.dart';
|
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|
import 'package:worldhopper/app.dart';
|
|
|
|
void main() {
|
|
testWidgets('App should build without errors', (WidgetTester tester) async {
|
|
// Build our app and trigger a frame.
|
|
await tester.pumpWidget(
|
|
const ProviderScope(
|
|
child: App(),
|
|
),
|
|
);
|
|
|
|
// Verify that the app loads and shows the server list screen
|
|
expect(find.text('My Servers'), findsOneWidget);
|
|
});
|
|
}
|