refactor: MVC sign up view
This commit is contained in:
parent
2362e9f273
commit
6b9f1476db
7 changed files with 121 additions and 80 deletions
|
|
@ -5,7 +5,7 @@ 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.pumpWidget(FluffyChatApp(testWidget: HomeserverPicker()));
|
||||
|
||||
await tester.tap(find.byType(TextField));
|
||||
await tester.tap(find.byType(ElevatedButton));
|
||||
|
|
|
|||
9
test/sign_up_test.dart
Normal file
9
test/sign_up_test.dart
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import 'package:fluffychat/controllers/sign_up_controller.dart';
|
||||
import 'package:fluffychat/main.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(testWidget: SignUp()));
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue