fluffychat/test/homeserver_picker_test.dart

15 lines
509 B
Dart
Raw Normal View History

2021-04-10 17:30:15 +02:00
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();
});
}