整个课程和数据UI重新设计版本
This commit is contained in:
@@ -3,13 +3,14 @@ import 'package:flutter/material.dart';
|
||||
import 'package:kouyu_english/core/app_state.dart';
|
||||
import 'package:kouyu_english/core/models.dart';
|
||||
import 'package:kouyu_english/features/lesson/lesson_flow.dart';
|
||||
import 'package:kouyu_english/main.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
|
||||
import 'support/app_assets.dart';
|
||||
|
||||
void main() {
|
||||
testWidgets('shows the M1 welcome flow', (tester) async {
|
||||
SharedPreferences.setMockInitialValues({});
|
||||
await tester.pumpWidget(const KouyuEnglishApp());
|
||||
await pumpLoadedApp(tester);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(find.text('每天 20 分钟,\n说出能用的英语。'), findsOneWidget);
|
||||
@@ -56,4 +57,4 @@ void main() {
|
||||
expect(find.text('使用麦克风跟读'), findsOneWidget);
|
||||
expect(find.text('播放跟读'), findsOneWidget);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user