add
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// 基础冒烟测试:App 能正常构建出「短视频」标题
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
import 'package:video_app/main.dart';
|
||||
|
||||
void main() {
|
||||
testWidgets('App 启动冒烟测试', (tester) async {
|
||||
await tester.pumpWidget(const ProviderScope(child: VideoApp()));
|
||||
await tester.pump();
|
||||
expect(find.text('短视频'), findsOneWidget);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user