2021-05-22 08:57:49 +02:00
|
|
|
import 'package:fluffychat/pages/homeserver_picker.dart';
|
2021-04-10 17:30:15 +02:00
|
|
|
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 {
|
2021-04-12 17:31:53 +02:00
|
|
|
await tester.pumpWidget(FluffyChatApp(testWidget: HomeserverPicker()));
|
2021-04-10 17:30:15 +02:00
|
|
|
|
|
|
|
await tester.tap(find.byType(TextField));
|
|
|
|
await tester.tap(find.byType(ElevatedButton));
|
|
|
|
await tester.pumpAndSettle();
|
|
|
|
});
|
|
|
|
}
|