feat: study home with daily plan card and quick actions
This commit is contained in:
1 parent
277ead9fe7
commit
0423027e97
4 files changed
+452
-6
No files matched your search
@@ -41,4 +41,20 @@ void main() {
|
||||
bar = tester.widget<NavigationBar>(find.byType(NavigationBar));
|
||||
expect(bar.selectedIndex, 3);
|
||||
});
|
||||
|
||||
testWidgets('学习首页展示今日任务与唯一主行动', (WidgetTester tester) async {
|
||||
await tester.pumpWidget(const KiriMemoApp());
|
||||
|
||||
expect(find.text('今日计划'), findsOneWidget);
|
||||
expect(find.text('待复习'), findsOneWidget);
|
||||
expect(find.text('待新识'), findsOneWidget);
|
||||
expect(find.text('开始学习'), findsOneWidget);
|
||||
|
||||
// 未接入内核的入口点击后要有反馈,不能静默无响应。
|
||||
await tester.tap(find.text('开始学习'));
|
||||
await tester.pump();
|
||||
await tester.pump(const Duration(milliseconds: 300));
|
||||
|
||||
expect(find.text('学习会话 尚未接入内核'), findsOneWidget);
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user