chore: Add initial integration tests
This commit is contained in:
parent
9c7fd66eb9
commit
02fbc4c8fd
4 changed files with 70 additions and 3 deletions
19
integration_test/app_test.dart
Normal file
19
integration_test/app_test.dart
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import 'package:fluffychat/pages/homeserver_picker/homeserver_picker.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:integration_test/integration_test.dart';
|
||||
|
||||
import 'package:fluffychat/main.dart' as app;
|
||||
|
||||
void main() {
|
||||
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
|
||||
|
||||
group('Integration Test', () {
|
||||
testWidgets('Test if the app starts', (WidgetTester tester) async {
|
||||
app.main();
|
||||
await tester.pumpAndSettle();
|
||||
find.byWidgetPredicate((widget) => Widget is HomeserverPicker);
|
||||
await tester.pumpAndSettle();
|
||||
});
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue