tests: Add tests for homeserver picker

This commit is contained in:
Christian Pauly 2021-04-10 17:30:15 +02:00
commit 078873bac5
2 changed files with 23 additions and 4 deletions

View file

@ -0,0 +1,14 @@
import 'package:fluffychat/controllers/homeserver_picker_controller.dart';
import 'package:fluffychat/main.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
testWidgets('Test if the widget can be created', (WidgetTester tester) async {
await tester.pumpWidget(FluffyChatApp(test: HomeserverPicker()));
await tester.tap(find.byType(TextField));
await tester.tap(find.byType(ElevatedButton));
await tester.pumpAndSettle();
});
}