환경 초기화 및 벤더 리포지토리 스켈레톤 도입
This commit is contained in:
17
test/widget_test.dart
Normal file
17
test/widget_test.dart
Normal file
@@ -0,0 +1,17 @@
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
import 'package:superport_v2/main.dart';
|
||||
|
||||
void main() {
|
||||
testWidgets('로그인 버튼을 누르면 대시보드로 이동한다', (tester) async {
|
||||
await tester.pumpWidget(const SuperportApp());
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(find.text('Superport v2 로그인'), findsOneWidget);
|
||||
|
||||
await tester.tap(find.text('로그인'));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(find.text('대시보드'), findsOneWidget);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user